Advertising banner:
EXECUTE  
Help Contents • Administration • FirstClass Scripting • Help Document
   
   
   
EXECUTE



Function
This command is used to point to another FC script. The Application Developer rule includes a Run Batch Admin Script action which enables you to execute a script contained in a document. You can also use the IF command to run two different scripts based on the results of the IF command.



Syntax
EXECUTE script path +af
EXECUTE script attached +af
Parameters


script path
Follow with the path to the FirstClass document containing the script.
script attached
Follow with the .txt file (attached to a message) that contains the script.
+a
Copy the attachments of the specified object. Optional.
+f
Copy the forms data of the specified object. Optional.




Examples
To excute a script named Create Conference located in a folder named My Scripts on the Admin Desktop, enter
EXECUTE script path desktop admin "My Scripts:Create Conference" +f
As an action within the Application Developer rule, the command would be:
EXECUTE script path desktop admin  "My Scripts:Create Conference" +f
To execute a script contained in an uploaded txt file and its supported attachments, enter
EXECUTE script attached "myscript.txt" +a