Re: Passing InDesign variables from one script to an other
Re: Passing InDesign variables from one script to an other
- Subject: Re: Passing InDesign variables from one script to an other
- From: Chris Paveglio <email@hidden>
- Date: Wed, 03 Apr 2013 17:29:41 +0000
- Thread-topic: Passing InDesign variables from one script to an other
Title: Re: Passing InDesign variables from one script to an other
The thing that I do is simply pass the name of the document. Since it’s a string, that is a standard data type to pass back and forth.
I’m using ASOC in ObjC apps and so I know I can’t pass InDesign objects to/from scripts or ObjC code. So I end up converting document references to the name of the document then using that. I only use “document 1” when I am positively sure there can not be
another document open at the same time.
At the very least I think you are going to have to do something like this (pseudo code):
-------first script
tell applicaton "Adobe InDesign CS6"
...
Set myDocName to name of document 1
tell application "Helperscript.app"
x(myDocName)
end tell
end tell
---------other script:
on x(docNameString)
using terms from application "Adobe InDesign CS6"
tell document docNameString
>>do things on ID document
end
end using terms from end x
_______________________________________________
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