Re: path to over eppc?
Re: path to over eppc?
- Subject: Re: path to over eppc?
- From: Paul Berkowitz <email@hidden>
- Date: Sun, 08 Jun 2003 19:50:05 -0700
On 6/8/03 7:19 PM, "matt neuburg" <email@hidden> wrote:
>
On Sun, 8 Jun 2003 08:25:55 +0100, John Delacour <email@hidden> said:
>
>
> At 9:50 am -0700 7/6/03, matt neuburg wrote:
>
>
>
>> beep works over eppc (the remote machine beeps). say
>
>> works over eppc (the remote machine talks). Why doesn't
>
>> path to work over eppc? When I try it, the result is a
>
>> pathname on the local machine. m.
>
>
>
> Because path is an OS X new thing and won't exist in any osax or app
>
> on the Classic set-up?
>
>
There's no Classic in this story. The two machines are essentially
>
identical Mac OS X machines. Let me put it more strongly. The status of
>
the phrases "beep" and "say" and "display dialog" and "path to" is the
>
same - they are all scripting addition commands. But in the following
>
script:
>
>
tell app "Finder" of machine "eppc://little-white-duck.local"
>
beep
>
say "howdy"
>
display dialog "howdy"
>
path to system folder
>
end
>
>
the first three commands are executed on the remote machine, but "path to"
>
is executed on the local machine. I need to know why. Please note, I don't
>
want a workaround; I want an explanation. m.
It seems to me that in the case of 'display dialog' and 'say', they are
implemented to take place within whatever application is being targeted by
the tell block in which they occur, or the current application if not in a
tell block.
But 'path to' is not like that. It's independent of the tell block in which
occurs. It simply means "path to the special folder specified" _on the
machine on which the script is being run_. It makes no difference (aside
from speed and AppleEvents taking a long way around) if they are in a
remote Finder tell block or Graphic Converter or anything else. 'path to
system folder'. 'path to preferences from user folder', 'path to "docs"', or
any 'path to' looks non the current machine and is agnostic about any tell
block it's in.
--
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.