• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Second Question about Links in active InDesign Spread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Second Question about Links in active InDesign Spread


  • Subject: Second Question about Links in active InDesign Spread
  • From: "Simon, Garry" <email@hidden>
  • Date: Mon, 5 Mar 2007 23:25:15 -0600
  • Thread-topic: 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

  • Follow-Ups:
    • Re: Second Question about Links in active InDesign Spread
      • From: Shane Stanley <email@hidden>
    • Re: Second Question about Links in active InDesign Spread
      • From: Brett Conlon <email@hidden>
  • Prev by Date: Re: InDesign 'crop images to frames'
  • Next by Date: Re: Second Question about Links in active InDesign Spread
  • Previous by thread: re: cgi
  • Next by thread: Re: Second Question about Links in active InDesign Spread
  • Index(es):
    • Date
    • Thread