Very basic "write to file" query
Very basic "write to file" query
- Subject: Very basic "write to file" query
- From: email@hidden
- Date: Wed, 4 Feb 2004 18:27:30 +0000
Hi all,
Does the following snippet work in Jaguar?
It works fine in Panther... and someone is getting error "(-48)
duplicate filename" in Jaguar.
I'm running Panther, so I can't really check it.
try
set file_ to ((path to desktop) & "test file") as Unicode text
open for access file_ write permission 1
copy the result to file_reference
write "test" starting at 0 to file_reference
close access file_reference
on error err_msg
close access file file_
display dialog err_msg buttons {"-"} default button 1
end try
--
DP
_______________________________________________
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.