Re: open for access file pathstring with write permission
Re: open for access file pathstring with write permission
- Subject: Re: open for access file pathstring with write permission
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 14 Jan 2003 10:47:25 -0800
On 1/14/03 9:56 AM, "Jacco Rens" <email@hidden> wrote:
>
can someone give me insight why this gives an error, google doesn't
>
come up with an clear answer :(
>
Mac OS X 10.2.3
>
>
tell application "Finder"
>
set pathstring to ((the path to desktop) as text) & "test"
>
set theNote to open for access file pathstring with write permission
>
write "test, test" to theNote
>
close access theNote
>
end tell
Because 'path to desktop' has nothing to do with the Finder, it's a
scripting addition in Standard Additions which has an 'alias' result. But
the Finder has its own 'desktop' term (a Finder file), so it's confused.
Just remove the Finder tell block and you'll be OK.
--
Paul Berkowitz
_______________________________________________
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.