Re: Indesign Question
Re: Indesign Question
- Subject: Re: Indesign Question
- From: Craig Sutherland <email@hidden>
- Date: Mon, 12 Jan 2004 18:06:39 -0600
Kenneth
Kenneth,
Looking in the dictionary for InDesign CS, the documents class has an
'all graphics' property. I do not know if ID 2.0.1 has a similar
dictionary- you can check.
On Jan 12, 2004, at 3:10 PM, Grimm, Kenneth wrote:
Can someone please shoot me a snippet that will return the path of all
graphics used in an InDesign document? I've tried several things with
no
usable results so far.
tell application "InDesign 2.0.1"
set myDocument to document 1
set myFoundItems to all graphics of myDocument
-- return myFoundItems
set myPageItems to page items of myDocument <-- works
>snip<
--return myPageItems
end tell
>snip<
I used a sample document that shipped with InDesign CS. This will be a
list with items like this:
image id 35671 of rectangle id 25389 of page id 119 of spread id 114 of
document "Adobe History.indd" of application "InDesign CS"
Looping through all the graphics in the document while extracting the
graphic id yields a list of the ids.
tell application "InDesign CS"
set myDocument to document 1
set myFoundItems to all graphics of myDocument
end tell
Craig Sutherland
_______________________________________________
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.