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

Re: newbie question


  • Subject: Re: newbie question
  • From: Dave Balderstone <email@hidden>
  • Date: Wed, 13 Oct 2004 16:18:36 -0600


On Oct 13, 2004, at 9:55 AM, Paul Grossmann wrote:

Is there a simple command I can use to make the script wait until the entire file has been received before opening? I was thinking of using the file size as the key, but that would limit me to that specific size.

In OS 9, check the file type. While a file is being written, its file type should be 'bzy '


In OS X, I've seen the following recommended (by Shane Stanley, methinks):

try
  open for access file theFile with write access
on error
-- the file is busy
end try

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: newbie question
      • From: "Shane Stanley" <email@hidden>
References: 
 >newbie question (From: Paul Grossmann <email@hidden>)

  • Prev by Date: Re: newbie question
  • Next by Date: Re: Need help: Really silly Excel 2004 question
  • Previous by thread: newbie question
  • Next by thread: Re: newbie question
  • Index(es):
    • Date
    • Thread