Old 03-09-2017, 09:53 PM   #1
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default Script: Create action to open a file...

As per @hopi's request here: http://forum.cockos.com/showthread.php?t=189037

Allows you to browse for a file (or a folder) and then generates a ReaScript to open it in the appropriate app. Could be used for folders you frequently access, or filling a toolbar with shortcuts to the manuals for your favorite plugins, etc, etc.

Available on ReaPack, or manually: Lokasenna_Create action to open a file... .lua

Enjoy.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 03-09-2017, 11:55 PM   #2
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

oh no... REALLY? Holy Smoke.... I'm too gone to try that tonight but I am mucho excited to give that go... you are amazing!!!
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 03-10-2017, 02:52 AM   #3
IXix
Human being with feelings
 
Join Date: Jan 2007
Location: mcr:uk
Posts: 3,891
Default

Quote:
Originally Posted by Lokasenna View Post
Allows you to browse for a file (or a folder) and then generates a ReaScript to open it in the appropriate app.
Ha, show-off!
IXix is offline   Reply With Quote
Old 03-10-2017, 10:00 AM   #4
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

Ok ...so tested and it's pretty insane that it works as it does...

and yet, it makes me ask this:

Can we have one that does the same thing but does not go to the individual file level? In other words, it will just let us choose a given folder to open and save that as a new script?
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 03-10-2017, 08:59 PM   #5
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Read the first message that pops up.

Reaper doesn't give me a way to pop up a "Choose a folder" dialog. Or a "Save As" dialog, for that matter.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 03-10-2017, 09:14 PM   #6
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Updated, automatically adds the new script to the Action List.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote
Old 03-10-2017, 10:47 PM   #7
hopi
Human being with feelings
 
hopi's Avatar
 
Join Date: Oct 2008
Location: Right Hear
Posts: 15,618
Default

ummm OK thanks for explaining this....

It is indeed quite amazing that it can open a given file and automatically write the new script...

At the same time it is not all that useful for me to open a 'file'... I need to open a folder... without leaving being inside reaper...

hmmm.... I wonder if it would open a shortcut.... I'll test that in a moment
__________________
...should be fixed for the next build... http://tinyurl.com/cr7o7yl
https://soundcloud.com/hopikiva
hopi is offline   Reply With Quote
Old 03-11-2017, 12:32 PM   #8
IXix
Human being with feelings
 
Join Date: Jan 2007
Location: mcr:uk
Posts: 3,891
Default

Quote:
Originally Posted by Lokasenna View Post
Updated, automatically adds the new script to the Action List.
Now come on, that really is just showing off! For goodness sake man, tone it down. You're making the rest of us look bad!
IXix 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 02:25 AM.


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