Re: Call an osax remotely?
Re: Call an osax remotely?
- Subject: Re: Call an osax remotely?
- From: Emmanuel <email@hidden>
- Date: Fri, 10 Oct 2003 22:38:12 +0200
At 3:26 PM -0400 10/10/03, Rob Jorgensen wrote:
>
At 11:54 AM -0400 10/10/03, Steve Roy wrote:
>
>Hi,
>
>
>
>Is it possible to call an osax remotely?
>
>
>
>tell machine "eppc://some.valid.address"
>
> path to system folder
>
>end tell
>
>
>
>The above gives me an error at runtime saying the machine "doesn't understand
>
>the path to message".
>
>
I think you need to target an application. If I run this, it seems to work but the alias is invalid.
>
>
using terms from application "Finder"
>
tell application "Finder" of machine "eppc://user:email@hidden"
>
path to system folder
>
end tell
>
end using terms from
>
>
--> alias "Mac HDSystemFolder"
>
>
The info is correct but note the lack of colons in the path. The script was run on a OS X 10.2.8 machine and it was sent to a machine running OS 9.1.
I suppose you'd rather ask the remote Finder to coerce to string before it returns the result to you. On the local machine the alias become invalid, and AppleScript suppresses the colon after the disk's name in invalid aliases (not a rule, just an observation).
Emmanuel
_______________________________________________
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.