-
1. Re: [CS5] InDesign Server LBQ - execute copy of a script?
Harbs. Mar 24, 2012 1:58 PM (in response to lhanneman)Have the script delete itself:
app.activeScript.remove();
Harbs
-
2. Re: [CS5] InDesign Server LBQ - execute copy of a script?
lhanneman Mar 26, 2012 6:56 AM (in response to Harbs.)Wow I didn't think that would be an option. That worked perfectly!
Do you know how exactly it handles that, though? It just seems odd that I couldn't delete the file for up to 15 seconds after the script was done being executed, but IDS can delete it immediately while the script is open and in use?
-
3. Re: [CS5] InDesign Server LBQ - execute copy of a script?
Harbs. Mar 26, 2012 11:45 AM (in response to lhanneman)1 person found this helpfulInDesign parses the script file when it opens and reads it. Once it's parsed, it's not really needed anymore.
Any process other than InDesign can't remove it though, because InDesign has it open. Since InDesign owns the file, it can delete it.
Harbs
-
4. Re: [CS5] InDesign Server LBQ - execute copy of a script?
Harbs. Mar 26, 2012 12:27 PM (in response to lhanneman)1 person found this helpfulBTW, regarding your original question, you can have one script open another script file, read it and execute it if you have the need. You can use either eval(scriptString) or app.doScript(scriptString).
Harbs
-
5. Re: [CS5] InDesign Server LBQ - execute copy of a script?
lhanneman Mar 26, 2012 12:36 PM (in response to Harbs.)Thanks again, that is good to know!