Re: open for access help
Re: open for access help
- Subject: Re: open for access help
- From: Larry McMunn <email@hidden>
- Date: Sat, 21 Apr 2001 09:23:43 -0400
RE:
try
tell application "Finder" to set startupDisk to name of startup disk
set fRef to ""
set fRef to open for access file (startupDisk & ":Desktop Folder:try")
with write permission
write "hcir" to fRef
close access fRef
on error errMsg number errNum
if fRef is not "" then
close access fRef
end if
end try
TRY THIS:
tell application "Finder" to set startupDisk to name of startup disk
set fRef to (startupDisk & ":Desktop Folder:try")
open for access file fRef with write permission
set eof file fRef to 0
write "hcir" to file fRef starting at eof
close access file fRef
Works on my machine.
Good Scripting! :-)
Larry McMunn
President
McMunn Associates, Inc.
Specialists in automated Data Visualization thru Apple products
Collingswood, NJ
(856) 858-3440
---------------------------------------------------------------