Old 05-25-2019, 11:29 PM   #1
Archie
Human being with feelings
 
Archie's Avatar
 
Join Date: Oct 2017
Location: Russia
Posts: 366
Default reaper.Main_SaveProject(path)

Hi! Here's my function request:

reaper.Main_SaveProject(proj,forceSaveAsIn,path)

I think it would be useful to be able to save projects along the specified path. Now, if forceSaveAsIn is set to true, then a window opens with the last used path, but there is no way to enter our path, which is very uncomfortable.
__________________
=================================
ReaPack| Archie-ReaScript: Discussion | Donate | Donate2 | Donate3 | PayPal |

Last edited by Archie; 05-27-2019 at 03:00 AM.
Archie is offline   Reply With Quote
Old 05-26-2019, 11:16 AM   #2
fripholm
Human being with feelings
 
Join Date: Jan 2011
Posts: 69
Default

This is exactly what I was looking for today ... and did not find.

So, yes:

+1
fripholm is offline   Reply With Quote
Old 05-26-2019, 09:45 PM   #3
Archie
Human being with feelings
 
Archie's Avatar
 
Join Date: Oct 2017
Location: Russia
Posts: 366
Default

For example: Here is one example.
I decided to make a script to open a project template.
First, the folder ProjectTemplates opens, then I choose a template and a window opens about saving, and here the path to the folder ProjectTemplates is saved, and it is not possible to open your path, which is very uncomfortable. And if you do not specify the path, the project template resaves itself, which is categorically not necessary.

Code:

    local Path = reaper.GetResourcePath().."/ProjectTemplates";
    local retval,fileNames = reaper.JS_Dialog_BrowseForOpenFiles("Open ProjectTemplates",Path,"","",false);
    if retval == 0 or fileNames == "" then return end;
    reaper.Main_openProject(fileNames);
    reaper.Main_SaveProject(0,true);
__________________
=================================
ReaPack| Archie-ReaScript: Discussion | Donate | Donate2 | Donate3 | PayPal |
Archie is offline   Reply With Quote
Old 05-27-2019, 01:30 AM   #4
Meo-Ada Mespotine
Human being with feelings
 
Meo-Ada Mespotine's Avatar
 
Join Date: May 2017
Location: Leipzig
Posts: 6,630
Default

Another one would be having the option to automatically save copies of a project onto another volume for archival purposes, maybe even using git for it.
So you can have automatic backups of projects not stored in the projectfolder.

I would suggest additional parameters too, with whom we can customize the other options in the save-project-as-dialog as well.
__________________
Use you/she/her.Ultraschall-Api Lua Api4Reaper - Donate, if you wish

On vacation for the time being...
Meo-Ada Mespotine is offline   Reply With Quote
Old 05-27-2019, 04:11 AM   #5
fripholm
Human being with feelings
 
Join Date: Jan 2011
Posts: 69
Default

Quote:
Originally Posted by mespotine View Post
So you can have automatic backups of projects not stored in the projectfolder.
That's what I was trying to do.
fripholm is offline   Reply With Quote
Old 09-11-2021, 05:29 AM   #6
lexaproductions
Human being with feelings
 
Join Date: Jan 2013
Posts: 1,128
Default

Agreed
+1
lexaproductions is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:44 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.