View Single Post
Old 01-26-2019, 02:25 AM   #225
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 5,504
Default

@juliansader
Hi,


I have an issue with the save file function


for some reason sometimes it displays all the file of the choosen extension, and sometimes only the folder.


Here is a piece of code runs everal times:


https://i.imgur.com/gcXgFTa.gifv


Code:
if not reaper.JS_Dialog_BrowseForSaveFile then
  Msg("Please install JS_ReaScript REAPER extension")
else

 retval, file = reaper.JS_Dialog_BrowseForSaveFile( "Save Markers and Regions", '', "", ".csv" ) -- Save file

 if retval and file ~= '' then
  Main()
 end
  
end

Note that I don't succeed to reproduce if I only keep the save file line.


How come ?


WIn 10 and last JS vesion.



Thx !
X-Raym is offline   Reply With Quote