• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Passing InDesign variables from one script to an other
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Passing InDesign variables from one script to an other
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: Safari
  • Next by Date: Script to pause/suspend Safari when in the background and resume when in foreground
  • Previous by thread: Re: Passing InDesign variables from one script to an other
  • Next by thread: Re: Passing InDesign variables from one script to an other
  • Index(es):
    • Date
    • Thread