Re: open for access error
Re: open for access error
- Subject: Re: open for access error
- From: Emmanuel <email@hidden>
- Date: Mon, 11 Feb 2002 11:33:35 +0100
At 11:45 PM +0100 10/2/02, Matt wrote:
>
>
I'm trying that, but I need to concatenate a path (folder) to the file to
>
write, so maybe a better question would be:
>
How do I write a file that doesn't exist to a known path and have it be
>
created. I'm thinking the following is the general idea:
>
set theDir to alias (path to desktop as string)
>
set theFile to "newfile.txt"
>
set fref to (open for access (theDir & theFile) with write permission)
>
close fref
You really need the word "file" (as in hcir's post).
-------------------------
set fref to (open for access file ((theDir as text) & theFile) with ...)
-------------------------
Emmanuel
_______________________________________________
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.