Passing InDesign variables from one script to an other
Passing InDesign variables from one script to an other
- Subject: Passing InDesign variables from one script to an other
- From: Bert Groeneveld <email@hidden>
- Date: Wed, 03 Apr 2013 14:07:48 +0200
Shane (or other InDesign specialists), can you please help?
I have a very large applescript that has too much lines (5000+). It's impossible to save with Script Debugger. To solve my problem I created a second script to which I transfered some handlers from the main script. So far so good. Things works fine, except for passing InDesign specific variables from the main script to the helperscript.
For example:
In the main script I have a variable myDoc (set myDoc to document 1). I call a handler from the helper script with myDoc as an argument. Unfortunately the helper script doesn't seem to understand the variable myDoc. Same thing goes for myPage, myRectangle, etc.
Q: How can I pass InDesign specific variables from the main script to helper script, so that they are understood in the helper script?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden