Re: Problems Writing to a File
Re: Problems Writing to a File
- Subject: Re: Problems Writing to a File
- From: Steve Suranie <email@hidden>
- Date: Thu, 10 Nov 2005 13:59:42 -0500
- Thread-topic: Problems Writing to a File
No, I mentioned that in my original post - I've tried open for access alias
theFilePath, open for access file theFilePath and they both return the same
error message. I've also tried this:
set theFilePath to (path to desktop) & "archiveTool:htmlFiles:tempFile.txt"
as alias
same error, the finder cannot find the file. Hard coding it works fine
though
On 11/10/05 1:34 PM, "Yvan KOENIG" <email@hidden> wrote:
> 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
>
_______________________________________________
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