• 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: Quark ps-file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Quark ps-file


  • Subject: Re: Quark ps-file
  • From: JJ <email@hidden>
  • Date: Wed, 13 Jun 2001 15:52:23 +0200

> manual (without script): I can see how the computer writes the file
> * with script: it prints like with background printing: the script is over and
> the ps-file is still not ready !
> * and in this case I get problems if I want to move a big file to another
> place becouse
> * the script is too quick compared to the writing of the file (ok I could rate
> a delay but I not always know how big a ps-file will be)

Every computer is a different world.
If you want move your ps files when they are "ready", then you should use a
very simple command from Jon's Commands:

fileIsBusy alias
Result: boolean -- Whether the file is open or not.

I. e.

tell application "Finder"
set the_ps to alias "HD:Desktop Folder:your.ps"
set its_final_destination to alias "HD:Desktop Folder:Dest_folder:"

set move_file to false

repeat while move_file = false
if (fileIsBusy the_ps) = false then
set move_file to true
end if
end repeat

move the_ps to its_final_destination
end tell

It's better use two different scripts: the printer, and the ps-mover (an
action folder).

I'm running a OS 8.6, but I know that OS 9.x's standard additions include
the "busy status" of files, like an inherit from "get info for" (name,
locked, file type, creator type, busy...).


  • Follow-Ups:
    • Re: Quark ps-file Thanks
      • From: Alberto Salvagnini <email@hidden>
References: 
 >Re: Quark ps-file (From: Alberto Salvagnini <email@hidden>)

  • Prev by Date: Re: [OS X] Any way to determine frontmost app?
  • Next by Date: Re: Determining Whether File In Use in System 8.6
  • Previous by thread: Re: Quark ps-file
  • Next by thread: Re: Quark ps-file Thanks
  • Index(es):
    • Date
    • Thread