• 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
Re: Second Question about Links in active InDesign Spread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Second Question about Links in active InDesign Spread


  • Subject: Re: Second Question about Links in active InDesign Spread
  • From: Shane Stanley <email@hidden>
  • Date: Tue, 06 Mar 2007 16:53:43 +1100
  • Thread-topic: Second Question about Links in active InDesign Spread

On 6/3/07 4:25 PM, "Simon, Garry" <email@hidden> wrote:

> 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:

Looping through is not particularly cumbersome; depending on an app's
support for whose clauses, it may be the only way.
>
> 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

Better to say:

if status of aLink is not link missing then
set end of LinkList to ((file path of aLink) as string)
end if

But in this case, it can probably all be done in one command:

        try
            set theLinks to (get file path of item link of every item of all
graphics of active spread of layout window 1 whose status of item link is
normal) as list
        on error
            -- there are none
        end try

--
Shane Stanley <email@hidden>
AppleScript Pro Denver, June 2007 <http://scriptingmatters.com/aspro>


 _______________________________________________
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

References: 
 >Second Question about Links in active InDesign Spread (From: "Simon, Garry" <email@hidden>)

  • Prev by Date: Re: Second Question about Links in active InDesign Spread
  • Next by Date: RE:InDesign 'crop images to frames'
  • Previous by thread: Re: Second Question about Links in active InDesign Spread
  • Next by thread: Mod & Creation Dates
  • Index(es):
    • Date
    • Thread