| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
Shane Stanley kindly answered my question about getting InDesign links in an active spread. I realized I have a second part to the question – is there an easy way to get a list of the links of an active spread whose status is “link missing”? Here’s my cumbersome solution, but I sure it could be more elegant:
tell application "Adobe InDesign CS2" set LinkList to {} set GraphicsLinks to (item link of all graphics of active spread of layout window 1) as list repeat with aLink in GraphicsLinks if status of aLink is not link missing then if LinkList is {} then set LinkList to ((file path of aLink) as string) as list else set LinkList to LinkList & ((file path of aLink) as string) as list end if end if end repeat end tell
Original post with answer:
> I need a script to return a list of all the links in the active spread > of an InDesign document for the purpose of updating them. set theLinks to (item link of all graphics of active spread of layout window 1) as list
Thanks again, Garry Simon
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden Archives: http://lists.apple.com/archives/applescript-users This email sent to email@hidden
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.