Skip to main content
grefel
Community Expert
Community Expert
May 19, 2014
Answered

insertLabel() in Application object for persistent data storage

  • May 19, 2014
  • 1 reply
  • 679 views

I thought about storing persistent Information in the Application object itself:

Not so interesting code snippet:

app.insertLabel("pxComplexName", "test");

// Later/Restart Safe

app.extractLabel("pxComplexName", "test");

I know how to get labels by extracting them from IDML. Does anyone know where the Application label is saved?

I thougt about using this as straightforward script usage counter in a trial version of a script. Any thougts about this?

Regards,

Gregor

This topic has been closed for replies.
Correct answer Harbs.

Application labels are saved in the application preferences file. When a user clears preferences, any data saved as labels is removed. This can either be a good thing or a bad thing -- depending on what you need...

Harbs

1 reply

Harbs.
Harbs.Correct answer
Legend
May 19, 2014

Application labels are saved in the application preferences file. When a user clears preferences, any data saved as labels is removed. This can either be a good thing or a bad thing -- depending on what you need...

Harbs