<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project]]></title><description><![CDATA[<p>Hi,</p>
<p>I’m making a video installation project that includes “Capture Stage to Disk” processes and some numerical (counter) processes. Therefore, when quitting the patch, Isadora asks (1) if I want to delete/retain all the captured media and (2) if I want to save the project or not.</p>
<p>I want to program the project to automatically (on selected days) open in the morning and close in the evening. There’s no challenge opening the project, but closing/quitting Isadora becomes more complicated because of Isadora asking (1) delete/retain captured media and (2) save the project or not.</p>
<p>When quitting Isadora, I do not want to delete the captured media and I don’t want to save the project (although saving the project would not be a big deal). But I want Isadora and my computer to be able to do starting/stopping the project automatically, and these “pop-up” selection windows make it impossible (without someone manually selecting the options).</p>
<p>The only ways I have found to avoid these “pop-up” selection windows is to Force-Quit Isadora – or in a case of a “crash”. Or maybe I just haven’t found them (at least there’s none in the preferences)?</p>
<p>Is there a way I can “preselect” and avoid the option “pop-ups” when closing Isadora? Any ideas would be appreciated. Working now on Isadora v3.0.2.</p>
<p>Thanks in advance!</p>]]></description><link>https://community.troikatronix.com/topic/6125/solved-avoiding-save-project-and-delete-captured-media-when-closing-project</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 12:47:43 GMT</lastBuildDate><atom:link href="https://community.troikatronix.com/topic/6125.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 21 Sep 2019 10:59:28 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Thu, 26 Sep 2019 17:39:50 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/1244">@lauri</a> said:</p>
<blockquote>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.)</blockquote>
<p> Excellent Idea. Let us know if it works!</p>]]></description><link>https://community.troikatronix.com/post/37576</link><guid isPermaLink="true">https://community.troikatronix.com/post/37576</guid><dc:creator><![CDATA[mark]]></dc:creator><pubDate>Thu, 26 Sep 2019 17:39:50 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Thu, 26 Sep 2019 17:29:02 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/1435">@Woland</a> <a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/2">@mark</a> Thank you again for your replies!</p><p>Yes (AppleScript as an .app and make it as a startup item), that’s the way I usually have dealt with the installation projects.</p>
<p>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. </p>
<p>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.)</p><p>Thanks again!</p>]]></description><link>https://community.troikatronix.com/post/37574</link><guid isPermaLink="true">https://community.troikatronix.com/post/37574</guid><dc:creator><![CDATA[Lauri]]></dc:creator><pubDate>Thu, 26 Sep 2019 17:29:02 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Thu, 26 Sep 2019 08:19:10 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/1435">@woland</a> said:</p>
<blockquote>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.</blockquote>
<p> Also an excellent and probably easier suggestion if it works for you <a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/1244">@Lauri</a> </p><p>Best Wishes,<br />Mark</p>]]></description><link>https://community.troikatronix.com/post/37573</link><guid isPermaLink="true">https://community.troikatronix.com/post/37573</guid><dc:creator><![CDATA[mark]]></dc:creator><pubDate>Thu, 26 Sep 2019 08:19:10 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Wed, 25 Sep 2019 14:00:26 GMT]]></title><description><![CDATA[<p>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.</p>]]></description><link>https://community.troikatronix.com/post/37563</link><guid isPermaLink="true">https://community.troikatronix.com/post/37563</guid><dc:creator><![CDATA[Woland]]></dc:creator><pubDate>Wed, 25 Sep 2019 14:00:26 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Wed, 25 Sep 2019 09:58:16 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/2">@mark</a> Thousand thanks for your advice!  Great! I will look into it.</p>]]></description><link>https://community.troikatronix.com/post/37562</link><guid isPermaLink="true">https://community.troikatronix.com/post/37562</guid><dc:creator><![CDATA[Lauri]]></dc:creator><pubDate>Wed, 25 Sep 2019 09:58:16 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Wed, 25 Sep 2019 07:47:33 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/1244">@lauri</a> said:</p>
<blockquote>Well, another question, would there be any way to launch the script from Isadora? (Just figuring out simple/secure ways to handle timing.)</blockquote>
<p>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.</p>
<p>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.</p>
<p>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 <a href="https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/WatchFolders.html" target="_blank">Apple article on "Folder Actions."</a></p>
<p>Best Wishes,<br />Mark</p>]]></description><link>https://community.troikatronix.com/post/37560</link><guid isPermaLink="true">https://community.troikatronix.com/post/37560</guid><dc:creator><![CDATA[mark]]></dc:creator><pubDate>Wed, 25 Sep 2019 07:47:33 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Tue, 24 Sep 2019 17:38:34 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/7">@Michel</a> <a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/1435">@Woland</a> Thousand thanks again! </p><p>Great! Michel's (...NoSave2.scpt) version work well!!!</p><p>And thanks for noting about the Accessibility section, I had ScriptEditor in the list but had forgotten to checkmark it. Sorry, my fault.</p><p>---</p><p>Well, another question, would there be any way to launch the script from Isadora? (Just figuring out simple/secure ways to handle timing.)</p><p>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?</p><p>Thanks!</p>]]></description><link>https://community.troikatronix.com/post/37557</link><guid isPermaLink="true">https://community.troikatronix.com/post/37557</guid><dc:creator><![CDATA[Lauri]]></dc:creator><pubDate>Tue, 24 Sep 2019 17:38:34 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Tue, 24 Sep 2019 16:48:45 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/7">@michel</a> said:</p>
<blockquote>there is an error in the code</blockquote>
<p> 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.</p><p>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.</p><p>Best wishes,</p><p>Woland</p>]]></description><link>https://community.troikatronix.com/post/37556</link><guid isPermaLink="true">https://community.troikatronix.com/post/37556</guid><dc:creator><![CDATA[Woland]]></dc:creator><pubDate>Tue, 24 Sep 2019 16:48:45 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Tue, 24 Sep 2019 16:41:58 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/1435">@woland</a> <a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/1244">@Lauri</a> </p><p>there is an error in the code edited it: <a href="/assets/uploads/files/1569343316944-lwsquitkeepmedianosave2.scpt.zip">LWSQuitKeepMediaNoSave2.scpt.zip</a></p><p>Best Michel<br /></p>]]></description><link>https://community.troikatronix.com/post/37555</link><guid isPermaLink="true">https://community.troikatronix.com/post/37555</guid><dc:creator><![CDATA[Michel]]></dc:creator><pubDate>Tue, 24 Sep 2019 16:41:58 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Tue, 24 Sep 2019 16:28:00 GMT]]></title><description><![CDATA[<p>Try tweaking this version</p><p><a href="/assets/uploads/files/1569342419565-lwsquitkeepmedianosave.scpt.zip">LWSQuitKeepMediaNoSave.scpt.zip</a></p><p>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.</p>]]></description><link>https://community.troikatronix.com/post/37554</link><guid isPermaLink="true">https://community.troikatronix.com/post/37554</guid><dc:creator><![CDATA[Woland]]></dc:creator><pubDate>Tue, 24 Sep 2019 16:28:00 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Tue, 24 Sep 2019 16:28:30 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/1244">@lauri</a> said:</p>
<blockquote>Script Editor is not allowed assistive access</blockquote>
<p> Google is your friend: <a href="https://stackoverflow.com/questions/31019916/is-not-allowed-for-assistive-access-error-when-running-applescript-from-java">https://stackoverflow.com/questions/31019916/is-not-allowed-for-assistive-access-error-when-running-applescript-from-java</a></p><img src="/assets/uploads/files/1569342501511-screen-shot-2019-09-24-at-6.22.47-pm.png" />]]></description><link>https://community.troikatronix.com/post/37553</link><guid isPermaLink="true">https://community.troikatronix.com/post/37553</guid><dc:creator><![CDATA[Woland]]></dc:creator><pubDate>Tue, 24 Sep 2019 16:28:30 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Tue, 24 Sep 2019 15:30:30 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/2">@mark</a> <a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/1435">@Woland</a> <a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/7">@Michel</a> Thousand thanks for your replies!</p><p>I tried the script but running it gets the following error: <b>error</b> "System Events got an error: Script Editor is not allowed assistive access." number -1719 from <i>window</i> 1 <b>of</b> <i>process</i> "Isadora".</p><p>So, what I did (after having run my patch with capturing stage) was quitting Isadora (then the first pop-up comes up) and then running Mark'sCloseNoSave.scpt, resulting to the above error message in script editor.</p><p>When quitting my project (as initially described), it brings two pop-ups:</p><img src="/assets/uploads/files/1569338342940-screenshot1.png" /><p></p><img src="/assets/uploads/files/1569338357844-screenshot2.png" /><p>In this order. And the marked buttons are the ones I want. So, <u><strong>don't delete files</strong></u> and <strong><u>don't save the project</u></strong>.</p><p>Thanks again!</p>]]></description><link>https://community.troikatronix.com/post/37550</link><guid isPermaLink="true">https://community.troikatronix.com/post/37550</guid><dc:creator><![CDATA[Lauri]]></dc:creator><pubDate>Tue, 24 Sep 2019 15:30:30 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Tue, 24 Sep 2019 14:22:00 GMT]]></title><description><![CDATA[<p><a href="/assets/uploads/files/1569334918269-mark-x27-sclosenosave.scpt.zip">Mark'sCloseNoSave.scpt.zip</a></p>]]></description><link>https://community.troikatronix.com/post/37549</link><guid isPermaLink="true">https://community.troikatronix.com/post/37549</guid><dc:creator><![CDATA[Woland]]></dc:creator><pubDate>Tue, 24 Sep 2019 14:22:00 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Tue, 24 Sep 2019 14:25:11 GMT]]></title><description><![CDATA[<p>Here's another solution I did last night that presses the buttons of the dialog for you. It's useful to note that almost any macOS app's dialogs, menus, etc. can be scripted by sending messages to System Events, as <a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/7">@Michel</a> pointed out in his link above.</p>
<p>This script is directly aimed at the issue brought up by the original poster. It assumes the following:</p>
<p>1) The Isadora file is "dirty" -- meaning it will ask to save the file. (Always true if you've recorded at movie using Capture Stage to Movie or Capture Camera to Movie)<br />2) The "Do you want to delete captured media" dialog will appear.  (Always true if you've recorded at movie using Capture Stage to Movie or Capture Camera to Movie)</p>
<p>Again, this is for AppleScript and thus a MacOS only solution. I don't know of an equivlent on Windows, though maybe <a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/124">@DusX</a> does.</p>
<p>-------- APPLESCRIPT STARTS HERE --------</p>
<pre>
tell application "System Events"<br /> tell application "Isadora"<br /> activate<br /> end tell<br /> tell process "Isadora"<br /> -- after a short delay, click the close button in the window<br /> delay 0.5<br /> click button 3 of window 1<br /> -- after a short delay, click the "Yes" button of the "Save Captured Media" warning<br /> -- this will delete all of the captured media<br /> delay 0.5<br /> click button "Yes" of window 1<br /> -- after a short delay, click the "Don't Save" button of the "Save File" warning sheet<br /> delay 0.5<br /> click button 2 of sheet 1 of window 1<br /> end tell<br />end tell</pre>
<p>-------- APPLESCRIPT ENDS HERE --------</p>
<p>Best Wishes,<br />Mark</p>]]></description><link>https://community.troikatronix.com/post/37535</link><guid isPermaLink="true">https://community.troikatronix.com/post/37535</guid><dc:creator><![CDATA[mark]]></dc:creator><pubDate>Tue, 24 Sep 2019 14:25:11 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Tue, 24 Sep 2019 01:25:01 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/7">@michel</a> said:</p>
<blockquote>on a mac you could record a mouse movement with automator. So it would click automatically to not safe the movies or the project.</blockquote>
<p>Easier than this (and safer in case the resolution changed or the dialog showed up somewhere different) is using <a href="https://support.apple.com/guide/automator/welcome/mac" target="_blank">Automator</a> with a <a href="https://smallbusiness.chron.com/schedule-automator-tasks-mac-os-x-39132.html" target="_blank">timed event</a> that just tells Isadora to forcequit. (There's also multiple ways to do all this so google is your friend to find other <a href="https://discussions.apple.com/thread/4828345?answerId=21322089022#21322089022" target="_blank">Applescript + timed event + forcequit</a> options.)</p><p>Simple script (without the timed event bit) would be: </p><pre>
tell application "Isadora" to quit saving no<br /></pre><p><b>or</b></p><pre>
tell application "Isadora 3" to quit saving no"<br /></pre><p>You can also go the route of having <a href="https://apple.stackexchange.com/questions/236926/how-to-quit-force-quit-applications-using-applescript" target="_blank">Applescript press specific buttons on specific dialogs or simulate the necessary keypresses for forcequitting</a>.</p>]]></description><link>https://community.troikatronix.com/post/37529</link><guid isPermaLink="true">https://community.troikatronix.com/post/37529</guid><dc:creator><![CDATA[Woland]]></dc:creator><pubDate>Tue, 24 Sep 2019 01:25:01 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Mon, 23 Sep 2019 10:15:56 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/1244">@lauri</a></p><p>Yes please make an official feature request over the form on the website. <a href="https://support.troikatronix.com/support/tickets/new">https://support.troikatronix.c...</a></p><p>Best Michel</p>]]></description><link>https://community.troikatronix.com/post/37502</link><guid isPermaLink="true">https://community.troikatronix.com/post/37502</guid><dc:creator><![CDATA[Michel]]></dc:creator><pubDate>Mon, 23 Sep 2019 10:15:56 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Mon, 23 Sep 2019 10:06:50 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/124">@DusX</a> <a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/7">@Michel</a> Thousand thanks for your replies and advice!</p><p>The "work around" sounds a bit complicated at first (at least not simple), but might try that procedure.</p><p>I would think my case is not a unique one, so I think it would be a good feature to be included to Isadora ("preselected" options of saving/not saving project and deleting/not deleting media). There must be a lot of people using Isadora for long-time installation, so I would imagine it would benefit many. The project could be saved as a special format (like now one can "Save as Run Only").</p><p>Would it be complicated to include this feature to Isadora? Should I make an "official" feature request?</p><p>Thanks again!</p>]]></description><link>https://community.troikatronix.com/post/37501</link><guid isPermaLink="true">https://community.troikatronix.com/post/37501</guid><dc:creator><![CDATA[Lauri]]></dc:creator><pubDate>Mon, 23 Sep 2019 10:06:50 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Mon, 23 Sep 2019 09:19:05 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://community.troikatronix.com/uid/1244">@lauri</a></p><p>on a mac you could record a mouse movement with automator. So it would click automatically to not safe the movies or the project.</p><p>Best Michel</p>]]></description><link>https://community.troikatronix.com/post/37500</link><guid isPermaLink="true">https://community.troikatronix.com/post/37500</guid><dc:creator><![CDATA[Michel]]></dc:creator><pubDate>Mon, 23 Sep 2019 09:19:05 GMT</pubDate></item><item><title><![CDATA[Reply to [SOLVED] Avoiding “Save project” and “Delete Captured Media” when closing project on Sat, 21 Sep 2019 20:40:25 GMT]]></title><description><![CDATA[<p>this would be a worthwhile feature request. Unfortunately there are no preference settings to control this. The only qay I can think around this would be to find some sort of hotkey/macro type software and schedule a script to run (via the OS) that closes isadora and 'clicks' the required buttons.</p><p></p>]]></description><link>https://community.troikatronix.com/post/37484</link><guid isPermaLink="true">https://community.troikatronix.com/post/37484</guid><dc:creator><![CDATA[DusX]]></dc:creator><pubDate>Sat, 21 Sep 2019 20:40:25 GMT</pubDate></item></channel></rss>