• 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: test for a finished file copy (was: Regarding the "info for" command)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: test for a finished file copy (was: Regarding the "info for" command)


  • Subject: Re: test for a finished file copy (was: Regarding the "info for" command)
  • From: cris <email@hidden>
  • Date: Sat, 10 Feb 2001 01:39:31 +0100

on 09.02.2001 21:51 Uhr, Robert Seckendorf at email@hidden wrote:

(...)
> I don't want to invoke the script until all the files in the
> receiving folder are completely copied into the folder.

(...)
> is there any way to check if a file is available merely by using the
> "info for" command?

You may try just to open the file. If you get an error, it is in use.

try
set FRef to open file thePath with write permission
close fref
return false
on error number errn
try
close fref
end
-- i don't know the error number for this case, try it self...
if errn = x then return true
return false
end



Greetings
cris
--
English is my second language.
www.cooc.de


References: 
 >Re: Regarding the "info for" command (From: Robert Seckendorf <email@hidden>)

  • Prev by Date: Re: OSX Feedback Address
  • Next by Date: Finding Files with Sherlock 2
  • Previous by thread: Re: Regarding the "info for" command
  • Next by thread: Re: wrap="virtual" [Was: Newbie Question]
  • Index(es):
    • Date
    • Thread