How do I loop through Indesign Button behaviors?
How do I loop through Indesign Button behaviors?
- Subject: How do I loop through Indesign Button behaviors?
- From: "Patrik B." <email@hidden>
- Date: Tue, 5 Sep 2006 18:18:53 -0700
Hi,
I am trying to write a script that will loop through the button behaviors in
an indesign document. For an interactive CD that I am working on.
I have basically linked a hole bunch of buttons to external pdfs. Now I have
to change the external links by language. Manually that would invlove
changing over 240 buttons by hand about 2-3 hours of work - I want to do it
in minutes as I have a lot of these to do.
I am trying to speed this up via an applescript the part I could not figure
out so far is how to do the loop through my selections. I am probably
addressing the objects of the selection incorrectly - any ideas?
Here is the script I have so far.
Tell app "Indesign CS"
set myselections to selection of document 1 -- I have 10 buttons selected
repeat with i in myselections
set mybehavior to properties of behaviors of i of document 1
--then I will add a handler here that changes the existing path mine
tell behaviors of i of document 1
set properties to {file path:mynewpath}--mynewpath is defined in the handler
end tell
end repeat
Best, Patrik
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden