Skip to content

Commit

Permalink
Update ultraschall_open_project_folder.lua
Browse files Browse the repository at this point in the history
Fehlermeldung klarer
  • Loading branch information
rstockm committed Dec 29, 2019
1 parent e451fc3 commit 40eb200
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Scripts/ultraschall_open_project_folder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Author URI: http://extremraym.com
* Repository: GitHub > X-Raym > EEL Scripts for Cockos REAPER
* Repository URI: https://github.com/X-Raym/REAPER-EEL-Scripts
* File URl:
* File URl:
* Licence: GPL v3
* Forum Thread: Scripts: Various
* Forum Thread URI: http://forum.cockos.com/showthread.php?p=1622146
Expand All @@ -21,7 +21,7 @@
+ Initial Release
--]]


--------------------------------------------------------
-- DEBUG
-- -----
Expand Down Expand Up @@ -69,19 +69,19 @@ function IsProjectSaved()

retval, project_path_name = reaper.EnumProjects(-1, "")
if project_path_name ~= "" then

dir = GetPath(project_path_name, separator)
--msg(name)
name = string.sub(project_path_name, string.len(dir) + 1)
name = string.sub(name, 1, -5)

name = name:gsub(dir, "")

--msg(name)
project_saved = true
return project_saved
else
display = reaper.ShowMessageBox("You need to save the project to execute this script.", "File Export", 1)
display = reaper.ShowMessageBox("You need to save the project to execute this script.", "Project Folder", 1)

if display == 1 then

Expand Down

0 comments on commit 40eb200

Please sign in to comment.