Copy link to clipboard
Copied
Hello --
is it possible to store the value of a variable via scripting after a script has been executed or does it only exist during runtime? The use case here would be to store a user entry between multiple executions of a script, e.g. the name of an artboard.
thanks in advance,
patrick.
Copy link to clipboard
Copied
you "could" use global variables, they survive until you close illustrator...or more properly, write your persistent data to a text file.
Copy link to clipboard
Copied
hello carlos --
thank you for your note and i will experiment with that. somehow i had expected that there is a way to create some data structure that would be saved with the document automatically, but couldn't find any documentation on it.
thanks,
patrick.
===
Copy link to clipboard
Copied
You talkin' 'bout the ol' XMP?
Copy link to clipboard
Copied
That's right, forgot about the XML string
Copy link to clipboard
Copied
hi there --
i am not familiar with that at all, could you elaborate how this is used?
thanks in advance.
Copy link to clipboard
Copied
Hi,
Below link is sample code of manipulate XMP packets:
https://github.com/ten-A/Extend_Script_experimentals/blob/master/metaMemo.jsx
maby this help…
Ten
Copy link to clipboard
Copied
You could also use tags. Nice and persistent along with being easily searchable on a document level.
Copy link to clipboard
Copied
You could have a look at the script I have linked to below.
I have not used it in a while but it reads and writes to a text file.
Store as many variables as you like and would be persistent on a system restart.
qwertyfly.com/QQT.zip
Find more inspiration, events, and resources on the new Adobe Community
Explore Now