• 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: Check images in QX
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Check images in QX


  • Subject: Re: Check images in QX
  • From: Alberto Salvagnini <email@hidden>
  • Date: Tue, 04 Dec 2001 10:35:33 +0100

I also was thinking to do this but I didn't find how to do it.

tell application "QuarkXPress"
activate
copy "" to pathLog
if document 1 exists then
tell document 1
repeat with i from 1 to (the number of every picture box)

if (file path of image 1 of picture box i as string) * "null" then
copy file path of image 1 of picture box i to filepath
copy pathLog & filepath & return to pathLog
end if

end repeat

end tell
end if
end tell

With the script above I tried (and I got) to get the path of every image on the
QX-spread and I get following results:
If the Volume - where the HiRes-Picture are - was mounted I got the full path
If it was not mounted, I got as result the volume name together with the
picture name and not something like an error.
Asking the modification date of one image, I always got the creating date as
modification date... (???)
Do you know how I can check in QX (3.32), if images in a document are missing
or modified?

Thanks for helping :)
Alberto

Shane Stanley schrieb:

> On 4/12/01 1:54 AM +1000, Alberto Salvagnini, email@hidden, wrote:
>
> > I am working on a script printing automatically ps-files.
> > The script works fine, only if some pictures in the document are missing
> > or modified I have a problem.
> > The script stops without giving an error and I just would like the
> > script going on sending a email to me with this error-message and
> > moveing the document to a special folder.
> >
> > I tried like this:
> >
> > try
> > tell document 1 of application "QuarkXPress"
> > print PostScript file (ZielOrdner & DokumentName & ".ps")
> > end tell
> > on error
> > sendmail using "mailhost" to "email@hidden" from ,
> > "ps-schreiben" with subject "Seite nicht OK" with body "I could
> > not print the document <<" & DokumentName & ">>"
> > move DokumentPfad1 to folder ArbeitsOrdner
> > end try
> >
> > any idea?
>
> That would be nice, but it doesn't work that way. You will have to check for
> yourself whether the pictures are present and updated before you issue the
> print command.
>
> --
> Shane Stanley, email@hidden
> _______________________________________________
> applescript-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/applescript-users


  • Follow-Ups:
    • temporary items folder
      • From: Giuliano Gavazzi <email@hidden>
    • Re: Check images in QX
      • From: Shane Stanley <email@hidden>
References: 
 >Re: Check images in QX (From: Shane Stanley <email@hidden>)

  • Prev by Date: Running AppleScript with cron when not logged in?
  • Next by Date: Re: Check images in QX
  • Previous by thread: Re: Check images in QX
  • Next by thread: Re: Check images in QX
  • Index(es):
    • Date
    • Thread