Re: Anyone help with applescript/InDesign??
Re: Anyone help with applescript/InDesign??
- Subject: Re: Anyone help with applescript/InDesign??
- From: Shane Stanley <email@hidden>
- Date: Sun, 11 Aug 2002 08:41:24 +1000
On 11/8/02 1:22 AM +1000, Jerry Hart, email@hidden, wrote:
>
OK, here goes.......
>
>
I would like to write a script that searches the current document (can I do
>
this for a whole book) for various heading styles and makes them hyperlink
>
destinations. I can figure out how to set up find preferences, but cannot
>
work out how to go any further.......
>
>
tell application "InDesign 2.0.1"
>
set MyBook to book "TC704Book_07Aug02"
>
set MyDocument to document "TC704ORG_07Aug02"
>
set find preferences to nothing
>
set applied paragraph style of find preferences to paragraph style
>
"Heading 1" of MyDocument
>
>
end tell
>
>
>
I am a complete beginner (duh!)....... All help gratefully received :-)
OK, your next step is to "search document 1", which will return you a list
of object references to the appropriately styled paragraphs, which you can
then loop through. (I don't know whether you can do the whole book at once.)
But if you're making hyperlinks, you need both hyperlink destinations and
hyperlink sources. What are your hyperlink sources?
--
Shane Stanley, email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.