Created
October 20, 2010 06:34
-
-
Save milligramme/635899 to your computer and use it in GitHub Desktop.
InDesign script arguments(cs2 or later)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* InDesign Script Argument memo | |
*/ | |
app.scriptArgs.set("mori","girl"); | |
app.scriptArgs.set("hayashi","boy"); | |
alert("is valid?: " + app.scriptArgs.isValid); | |
app.scriptArgs.save(); | |
app.scriptArgs.clear(); | |
alert("after clear, is defined?: " + app.scriptArgs.isDefined("mori") ); | |
//false | |
app.scriptArgs.restore(); | |
alert("and then restore, is defined?: " + app.scriptArgs.isDefined("mori") ); | |
//true | |
alert("get value of mori: " + app.scriptArgs.get("mori") ); | |
alert("get value of hayashi: " + app.scriptArgs.get("hayashi") ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment