How to Run a SubMacro Just Once, Without Using Permanent Variables?

The subject pretty much says it all, but I think the answer is "you can't." I'd like to have a "first run" screen that appears, and the only way I can think of to do it is to create a permanent variable and check for its existence on macro launch.

But if I distribute an updated version of the macro, I'll need to create another permanent variable, so that the new first-run page can appear. I don't like cluttering others variable lists with permanent variables, so I was wondering if there was a more creative solution—maybe some way to check a last-run date in AppleScript or something? Then I could only show the page if the last run date were blank.

Any creative workarounds?

thanks;
-rob.

Have the macro that calls the submacro check to see if the submacro is enabled or not before executing it. If the macro is enabled, execute it, then disable it. Done. :slight_smile:

1 Like

As usually, a genius-level incredibly simple solution! My overnight solution was to change the one permanent variable I allow myself to an array, and then parse the array value for YES or NO.

Yours is much simpler :).

-rob.

1 Like