Open for Access, Alias, Items in use
Open for Access, Alias, Items in use
- Subject: Open for Access, Alias, Items in use
- From: email@hidden
- Date: Wed, 30 Jan 2002 13:51:27 -0600
I have a script posted below. When I try to run it in OS 9.2.2, I get the
error message:
"The command could not be completed, because it contains items that are in
use."
It runs fine in OS 9.1.
Any ideas what broke it, or what I can do to get around this problem?
set theText to "blah, blah, blah."
set TheFile to open for access file {{path to desktop, "testfile"} as string}
with write permission
write theText to TheFile
close access TheFile
tell application "Finder"
select file "testfile"
make new alias file to selection at desktop
end tell
Thanks
Jim Scharosch
Mac System Administrator
Gazette Communications
319-368-8669
email@hidden