• 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: Indesign Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Indesign Question


  • Subject: RE: Indesign Question
  • From: "Grimm, Kenneth" <email@hidden>
  • Date: Tue, 13 Jan 2004 10:17:24 -0500

Thanks to Shane Stanley for the insight into InDesigns innards and
confirmation of the "not" bug in whose clauses.

To Mr. Craig Sutherland, I am using InDesign 2.0.3, I should have mentioned
that.

The code below works. Thanks a million guys.

Ken

======================================================================

set graphicsUsed to links of front document whose needed is true
repeat with aPath in graphicsUsed
if status of aPath is link missing then
-- nothing; just getting around *not* bug in inDesign.
else
set end of theGraphicsPathsList to file path of aPath
end if
end repeat
return theGraphicsPathsList

======================================================================
[formatted using ScriptToEmail - gentle relief for mailing list pains]
[http://files.macscripter.net/ScriptBuilders/ScriptTools/ScriptToEmail.hqx]

> ----------
> From: Shane Stanley
> Sent: Monday, January 12, 2004 9:32 PM
> To: Grimm, Kenneth
> Subject: Re: Indesign Question
>
>
> On Jan 13, 2004, at 10:19 AM, Grimm, Kenneth wrote:
>
> > First of all, thanks for willingness to help me.
> >
> > The snippet works as long as the graphics all have good links.
>
> Yep.
> >
> > Trying to trap for this, I found through Script Debugger's explorer,
> > there
> > is a "status" property that says "link missing." I tried modifying the
> > script to say "file path of links whose needed is true and status is
> > not
> > link missing". No good -- it still returns the entire list of links
> > that are
> > broken. Regardless of "is" or "is not" for "status", the returned list
> > is
> > the same. Tried testing for just the "status" without the "needed" --
> > same
> > results -- all broken links are returned regardless of syntax.
>
> Yes, there's a bad bug in whose clauses in InDesign 2.x -- they ignore
> "not". Helpful not ;-). It also has problems with some compound whose
> clauses.
> >
> > What is interesting is the path that IS returned for a missing link is
> > the
> > path to Script Debugger. Go figger.
>
> It's probably returning "current application".
> >
> > I have to go do production work now -- I'll return to this tomorrow.
> > Any
> > ideas are much appreciated.
>
> Do something like (untested):
>
> set theLinks to every link whose needed is true
> repeat with aLink in theLinks
> if status of aLink is link missing then
> -- nothing; just getting around not bug
> else
> set end of allPaths to file path of aLink
> end if
> end repeat
> >
> > BTW -- purpose of this script is to extract a file path to every
> > graphic
> > used in the document, then preflight it using "Image Info." I already
> > have
> > scripts for Creator Pro and stand alone apps, I'm just trying to get it
> > incorporated into InDesign.
>
> The above should work, but InDesign CS is much better scripting-wise
> (and otherwise).
>
> Cheers,
> --
> Shane Stanley <email@hidden>
_______________________________________________
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.

  • Prev by Date: Re: Slashes in filenames (was: Elementary fie naming question)
  • Next by Date: Help! My Applescript no longer works in Panther
  • Previous by thread: Re: Indesign Question
  • Next by thread: getting users
  • Index(es):
    • Date
    • Thread