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: Fri, 8 Sep 2006 12:48:42 -0700
Thanks Shane for the input below. Your variation worked just fine. I have
been able to save hours so far.
One other thing that I was trying to do but didn't seem to be able to get
the path of an image link of a button.
Basically I drop the pdfs that my menu links to into an indesign file and
then have to generate the buttons that link to the very pdfs I dropped in.
I was hoping that the is a way of just selecting the images and converting
them with a script to buttons and with the same script linking to that very
pdf. So when I then make an interactive pdf I could just click on the
button. No luck so far I have not been able to figure out how you get to the
image path of a graphic dropped into a button. If I could read that I could
use it to redirect the button.
So far I basically made a sample button to a template file and then have a
script that change the paths of the templates to the specific language - I
managed to that much with your help below. Anyway more data you have on the
button object and its links attributes would help.
Best, Patrik
>> > any ideas?
>
> Where is your script failing? I'd be more inclined to try something like
> (untested):
>
> Tell app "Indesign CS"
> set myselections to selection of document 1 -- I have 10 buttons selected
> repeat with i from 1 to count of items of myselections
> repeat with j from 1 to count of behaviors of item i of myselections
> set mybehavior to properties of behavior j of item i of myselections
> --then I will add a handler here that changes the existing path mine
> tell behavior j of item i of myselections
> set properties to {file path:mynewpath}--mynewpath is defined in the
> handler end repeat end repeat end tell
>
> --
> 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:
This email sent to email@hidden