PDA

View Full Version : Global script, how is it created?


ambalboa
06-27-2007, 10:42 AM
I would like to write a global script that would get a version number, increment it, and then sent that value back to set it to a project. I can do this using the Run Script action as a project step, but I think it would be best if I can set version numbers to different items by passing the version number value back and forth to the global script which would increment it by one.

How can I do this? Do I copy and paste my project script into the global script tab on Script Editor?

kinook
06-27-2007, 10:53 AM
Incrementing a version number in a macro only takes a few lines of code (see the Script.bld sample), so there may not be much point in putting it into global script code.

Global script code can modify global, project, and temporary macros directly, and you could also pass in the name of the macro to a global script function when calling it. Yes, global script functions are edited on the Global tab of the Script Editor.