Re: Writing to an existing file
Re: Writing to an existing file
- Subject: Re: Writing to an existing file
- From: Marcus Rodrigues <email@hidden>
- Date: Fri, 12 Sep 2003 12:45:09 -0300
Add "as alias and it will work:
set theFilePath to (path to desktop as string) & "Test.txt" as alias
set theFileRef to open for access theFilePath with write permission
write "Hello!" to theFileRef
close access theFileRef
On Friday, September 12, 2003, at 12:30 PM, Steve Roy wrote:
>
set theFilePath to (path to desktop as string) & "Test.txt"
>
set theFileRef to open for access theFilePath with write permission
>
write "Hello!" to theFileRef
>
close access theFileRef
o#? Marcus Rodrigues o#?
iBook 600 - Combo - Jaguar
CC4nsul do Brasil Apple Clube - Caxias do Sul
Moderador BAC-Macusers
ichat: marcusrodrigues
mailto:email@hidden
http://homepage.mac.com/marcusrodrigues
_______________________________________________
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.