• 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: INDESIGN CS3: Auto-run a Script on Document Open
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: INDESIGN CS3: Auto-run a Script on Document Open


  • Subject: Re: INDESIGN CS3: Auto-run a Script on Document Open
  • From: Shane Stanley <email@hidden>
  • Date: Fri, 25 Apr 2008 21:49:36 +1000
  • Thread-topic: INDESIGN CS3: Auto-run a Script on Document Open

On 25/4/08 6:40 PM, "Rick Gordon" <email@hidden> wrote:

> if it's easier to just point me to a reference, that's fine too

It's all documented: go to
<http://www.adobe.com/products/indesign/scripting/index.html>, click on the
tab half-way down called Scripting resources, and download the scripting
guide and associated scripts. Look in the section on Events.

Basically, you need to save a script that does what you want to document 1,
then in a start-up script create an event listener that calls it, as in:

tell application "Adobe InDesign CS3"
    make event listener with properties {event type:"afterOpen",
handler:<path to:script:you:want:to run>, captures:true}
end tell

Then you can use a variable called "evt" in the called script to capture a
reference to the event.

--
Shane Stanley <email@hidden>


 _______________________________________________
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

References: 
 >INDESIGN CS3: Auto-run a Script on Document Open (From: Rick Gordon <email@hidden>)

  • Prev by Date: INDESIGN CS3: Auto-run a Script on Document Open
  • Next by Date: RE: Creating an empty XML file on my desktop
  • Previous by thread: INDESIGN CS3: Auto-run a Script on Document Open
  • Next by thread: osacompile requires evaluation of "tell application" statements?
  • Index(es):
    • Date
    • Thread