Re: try...on error...no error?
Re: try...on error...no error?
- Subject: Re: try...on error...no error?
- From: Michael Terry <email@hidden>
- Date: Fri, 12 Dec 2003 12:59:21 -0800
How about:
tell app "Finder" to try
set srcFile to file "blah" of folder "blah" of disk "blah"
set destFold to folder "blah" of disk "blah"
open for access (srcFile as unicode text) write permission true
close access result
copy theFile to destFold
on error
-- etc
end try
Cheers,
Mike
Thanks Mike. That worked fine. I did alter the open for access line to
read:
open for access (srcFile as unicode text) without write permission
Just a safety precaution as the files being copied are ultra sensitive
to alterations. The result was the same either way.
Cool. For some reason I thought you might be able to read busy files,
but I guess they're too busy for that!
Cheers,
Mike
_______________________________________________
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.