Welcome to %s forums

BrainModular Users Forum

Login Register

FastScript - Save Dialog Prompt

Tell us what you'd like Usine to do
Post Reply
sephult
Member
Posts: 1144
Contact:

Unread post by sephult » 08 Sep 2013, 13:57

I keep doing it seems I keep exiting out the scripting window and losing my scripts.
Would be fantastic to add a prompt to save, or cancel if not saved.

-S
"Every act of creation is first an act of destruction." -Picasso

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 22 Sep 2013, 18:24

maybe put the old script in the trash is easier to implement and could be equivalent.

ceasless
Member
Posts: 330
Contact:

Unread post by ceasless » 22 Sep 2013, 19:30

That sounds like a decent solution senso. I continuously have an issue where I hit escape (normal first move to save when in vim) and this erases all my changes. To have it instead save the new changes and put the old version in the trash would be very helpful.

sephult
Member
Posts: 1144
Contact:

Unread post by sephult » 23 Sep 2013, 13:49

Yes I agree...I tend to multitask...and compare and end up closing the wrong script.
I am not the most efficient at scripting yet...so much more frustrating when I lose a giant script :)
"Every act of creation is first an act of destruction." -Picasso

woodslanding
Member
Posts: 1327
Contact:

Unread post by woodslanding » 23 Sep 2013, 18:09

I do all my scripting in an external editor.

I find the cursor location anomalous compared to any other app (notepad,word,any browser, etc.) so I keep selecting whole lines when I'm trying to select a character, it's impossible to select the first character in a line, etc.

I recommend notepad++. Save your script with a .pas extension, and you get all the context coloring. And you have global search and replace, etc. When I think I'm done, I copy/paste into usine, and debug there. (There used to be a way to compile from an external editor, don't know if that's been implemented in V6, but that would be even easier.) Then I copy/paste it back into notepad. Keeps all my scripts handy in one place.

Now if I could just figure out how to rename scripts in HH.....
Custom Ryzen 5900x MATX build, Win10, Fireface UFX, touchscreen
Custom 2 manual midi keyboard
Usine, Kontakt, Reaktor, Synthmaster, Byome, Arturia, Soundtoys, Unify

ynohtna
Member
Posts: 36
Location: Brighton, UK
Contact:

Unread post by ynohtna » 24 Sep 2013, 18:39

I too do my scripting in an external editor. (Emacs with a modified pascal-mode for proper syntax highlighting, outlining, indenting etc of fastscript. Ask if you'd like a copy.)

The fastest way I've found to integrate it into my workflow is to save the edited file, switch to Usine, open the Browser (apple-B), and drag the script into my patch. I found copy/pasting the text into a Usine script window too inconvenient. (If I'm replacing a previous script instance in a patch then I drag the new script from the Browser whilst holding Alt so it replaces the previous one).

It would be nice if Usine had a "Reload" option for scripts (i.e. they remembered if an external file provided the source) but I'm sure Senso and the crew have enough to think about as it is. :)

Post Reply

Who is online

Users browsing this forum: No registered users and 51 guests