Re: Problems Writing to a File
Re: Problems Writing to a File
- Subject: Re: Problems Writing to a File
- From: Michelle Steiner <email@hidden>
- Date: Thu, 10 Nov 2005 11:56:21 -0700
On Nov 10, 2005, at 11:34 AM, Yvan KOENIG wrote:
The Finder is unable to open a string as you are trying to do.
I assume that this revised handler will work:
set f to (open for access alias theFilePath with write permission)
-- edited
That won't work; unless the file already exists, there will be a
compile error when the compiler tries to resolve the alias. The word
"file" would work, but it is not necessary because the compiler will
force a type cast from string to file designator.
-- Michelle
--
Don't anthropomorphize computers. They hate that.
_______________________________________________
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