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 12:18:24 +1000
On 11/8/02 9:07 AM +1000, Jerry Hart, email@hidden, wrote:
>
I hope this is not TOO long winded.....
>
>
I am producing some technical manuals that need to be in printed and on-line
>
format (ideally pdf). To make the online versions of usable size, I have
>
split the manuals into chapters and placed these in books. Eventually there
>
will be several books.
>
>
Each document or chapter will make reference to other chapters, books and
>
web pages. The chapter references will primarily be to chapter, section, or
>
subsection headings (para styles Heading 1, 2 & 3) and as there will be many
>
of these, I would like to find a way of automating setting each heading to a
>
Hyperlink destination (text anchor) that can be used from any document in
>
the suite. The sources can be set up manually as they may in the general
>
texts.
>
>
Does this make sense?
It's starting to. I'm not sure this will work book-wide, though; you'll have
to try it. But it should get you started:
tell application "InDesign 2.0.1"
set find preferences to nothing
set change preferences to nothing
set find preferences to {applied paragraph style:paragraph style "Heading
1" of document 1}
tell document 1
set theRefs to search
repeat with i from 1 to count of theRefs
make hyperlink text destination with properties {destination text:item i
of theRefs, name:"Heading " & i}
end repeat
end tell
end tell
--
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.