Re: 10.x References?
Re: 10.x References?
- Subject: Re: 10.x References?
- From: has <email@hidden>
- Date: Mon, 16 Sep 2002 15:23:06 +0100
John Delacour wrote:
>
> > tell "Finder"
>
> > set pickmepickme to path to current user folder
>
>> end tell
>
> >
>
>> Got me the "Finder doesn't understand the "Path To" message.
>
>
>
>Put the command OUTSIDE of the Finder tell block, and it will work. It will
>
>return an alias to your current user folder.
>
>
>
You're missing the point, Bill. 'tell "Finder"' is meaningless.
Ha-ha; oh yes, good spot. I never saw it either: we're all so
pre-conditioned by certain AppleScript constructs that we automatically
interpret the above as 'tell [application object]' when the OP has, in fact
written 'tell [string object]'. The 'tell "Finder"' isn't truly
'meaningless' (any kind of object may be the target of a tell block), but
it's not what the OP was obviously intending.
Aside from that, Bill's right inasmuch as 'path to' has no need to be
inside a Finder tell block, since it's an osax call. (There's a frequent
misassumption amongst novices that any file-related command must be sent to
the Finder. Mac users often think that Finder = OS = disk filing system -
not the case at all - and this belief carries over into their scripting
where it causes all sorts of confusion.)
Ahhh, but what a mad, bad, mixed-up world we live in. :o)
has
--
http://www.barple.pwp.blueyonder.co.uk -- The Little Page of 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.