[SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project
-
Try tweaking this version
LWSQuitKeepMediaNoSave.scpt.zip
An easy way to actually see what's happening is to slow it all down by changing each "delay 0.5" to "delay 2" so each action takes longer.
-
-
@michel said:
there is an error in the code
No surprise there. I write frankenstein applescript cobbled together from different places and then just tweak things until it does what I want. Couldn't test that one in full because I'm on the orders computer which doesn't have a license different dialogs show up when quitting Isadora.
Also worth noting that you'll need to change the name of the Isadora application specified at the top when you move to different versions.
Best wishes,
Woland
-
@Michel @Woland Thousand thanks again!
Great! Michel's (...NoSave2.scpt) version work well!!!
And thanks for noting about the Accessibility section, I had ScriptEditor in the list but had forgotten to checkmark it. Sorry, my fault.
---
Well, another question, would there be any way to launch the script from Isadora? (Just figuring out simple/secure ways to handle timing.)
To preserve the functionality of my patch, the Stage Captures have to run a certain length, so closing the patch is triggered when the capture has ended (and then the patch jumps to an empty stage, and Isadora can then be closed). Ending the patch/captures is easy to get timed within Isadora, but it would be convenient to launch the closing script from the same timing. Of course there could be a reasonable time difference from estimated patch ending and script launch, but it would be nice if launching the script could be initiated from Isadora. Possible?
Thanks!
-
@lauri said:
Well, another question, would there be any way to launch the script from Isadora? (Just figuring out simple/secure ways to handle timing.)
I'm afraid, for security reasons, we don't allow that. Otherwise someone evil could launch an AppleScript to do nasty things to your computer, e.g., erase your hard drive.
You can however write applescripts that monitor the contents of a folder, looking for a file to appear. So one way would be to use the Data Array actor to write a file to disk -- even if the file has no actual contents. When the AppleScript sees that file appear in the folder, it could then do something else. So that's one way to trigger an AppleScript from Isadora.
I'm sorry but I don't have time at the moment to write this for you. But if you want to try yourself, read this Apple article on "Folder Actions."
Best Wishes,
Mark -
@mark Thousand thanks for your advice! Great! I will look into it.
-
The other thing you could do is make the applescript into an .app file, make it a startup item, have it open Isadora and use the time of day function to trigger the closing and opening of Isadora at whatever time intervals you want.
-
@woland said:
The other thing you could do is make the applescript into an .app file, make it a startup item, have it open Isadora and use the time of day function to trigger the closing and opening of Isadora at whatever time intervals you want.
Also an excellent and probably easier suggestion if it works for you @Lauri
Best Wishes,
Mark -
@Woland @mark Thank you again for your replies!
Yes (AppleScript as an .app and make it as a startup item), that’s the way I usually have dealt with the installation projects.
The thing is that I need to sync the close-down with the stage captures. The captures really need to be fixed length, so an arbitrary shut-down doesn’t work.
But yes, I can initiate also the close-down Isadora procedure by sending a timed key (for instance “X”) from the AppleScript app (registered by Key Table Watcher actor, which triggers the close-down procedure), and then make the AppleScript app wait for at least the length of the capture cycle, before closing the project/Isadora – not deleting files, not saving patch. (So, all the timing would actually come from the AppleScript app.)
Thanks again!
-
@lauri said:
But yes, I can initiate also the close-down Isadora procedure by sending a timed key (for instance “X”) from the AppleScript app (registered by Key Table Watcher actor, which triggers the close-down procedure), and then make the AppleScript app wait for at least the length of the capture cycle, before closing the project/Isadora – not deleting files, not saving patch. (So, all the timing would actually come from the AppleScript app.)
Excellent Idea. Let us know if it works!