Re: Second Question about Links in active InDesign Spread
Re: Second Question about Links in active InDesign Spread
- Subject: Re: Second Question about Links in active InDesign Spread
- From: Brett Conlon <email@hidden>
- Date: Tue, 6 Mar 2007 15:43:07 +1000
Hi Simon,
I can't answer your question definitively
but at a glance I'd probably change this bit:
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
...
to
if status of aLink is
not link missing then
set end
of
LinkList to
((file path of
aLink) as
string)
...
And I'm not sure but you may not have
to coerce the path to a string and just use:
set end
of
LinkList to
(file path of
aLink)
Cheers,
Cojcolds
"Simon, Garry"
<email@hidden>
Sent by: applescript-users-bounces+brett.conlon=email@hidden
06/03/07 04:25 PM
|
To
| <email@hidden>
|
cc
|
|
Subject
| Second Question about Links in active
InDesign Spread |
|
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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden