Re: Problems Writing to a File
Re: Problems Writing to a File
- Subject: Re: Problems Writing to a File
- From: Yvan KOENIG <email@hidden>
- Date: Thu, 10 Nov 2005 19:34:15 +0100
Hello
The Finder is unable to open a string as you are trying to do.
I assume that this revised handler will work:
on writeFile(theFilePath, theContent)
tell application "Finder"
set f to (open for access alias theFilePath with write
permission) -- edited
write theContent to f
close access f
end tell
end writeFile
Yvan KOENIG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden