Re: INDESIGN CS3: Auto-run a Script on Document Open
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