Re: Anyone help with applescript/InDesign??
Re: Anyone help with applescript/InDesign??
- Subject: Re: Anyone help with applescript/InDesign??
- From: Jerry Hart <email@hidden>
- Date: Sat, 10 Aug 2002 16:07:49 -0700
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?
Fingers crossed...
Jerry
On 10/8/02 15:41, "Shane Stanley" <email@hidden> wrote:
>
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?
_______________________________________________
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.