Re: Can't write to file - MacOS 9.1 + AS 1.8.3
Re: Can't write to file - MacOS 9.1 + AS 1.8.3
- Subject: Re: Can't write to file - MacOS 9.1 + AS 1.8.3
- From: JJ <email@hidden>
- Date: Wed, 21 Aug 2002 10:30:08 +0200
>
I know this was previously discussed, but I don't recall a resolution or
>
solution. I have the following simple script:
>
>
set rpfile to "BackDrop:test4" as string
>
try
>
set transID to open for access file rpfile with write permission
>
write "hello" to transID
>
close access transID
>
on error errmsg
>
try
>
close access transID
>
end try
>
display dialog errmsg
>
end try
>
>
I get the following error message:
>
>
Can't make file "BackDrop:test4" into a <<class fsrf>>.
Hi.
I can't re-create your problem, but... Did you tried...
set rpfile to "BackDrop:test4"
...
set transID to open for access rpfile with write permission
...
(without "file")
Or, if it doesn't work... Why don't
tell app "Finder" to set new_file to (make file at desktop)
set transID to open for access new_file with write permission
...
Bye!
JJ
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
_______________________________________________
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.