Re: puzzled with script syntax error
Re: puzzled with script syntax error
- Subject: Re: puzzled with script syntax error
- From: has <email@hidden>
- Date: Thu, 27 Jun 2002 09:56:01 +0100
Cornwall wrote:
>
I think you have only two choices
>
2. Enclose "set _result to (read fileRef)" in a Finder tell
>
>
set fileRef to alias "Macintosh HD:Users:sharon:file1.txt"
>
--open for access fileRef
>
tell app "Finder"
>
set _result to (read fileRef)
>
end tell
>
--close access fileRef
Sending osax messages to the Finder can cause its own problems (i.e. lots
of opportunity for keyword clashes there). What about sending them direct
to the AppleScript object instead?
tell AppleScript
--blah blah
end tell
[Can't recall seeing this done elsewhere, mind you. If that's the case then
is there some reason for avoiding it, or have folks simply never thought of
using it?]
has
--
http://www.barple.connectfree.co.uk/ -- The Little Page of Beta AppleScripts
_______________________________________________
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.