Re: Call an osax remotely?
Re: Call an osax remotely?
- Subject: Re: Call an osax remotely?
- From: Rob Jorgensen <email@hidden>
- Date: Fri, 10 Oct 2003 17:43:18 -0400
At 10:38 PM +0200 10/10/03, Emmanuel wrote:
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).
Coercing to string didn't seem to work but here's
a roundabout way to get the path.
using terms from application "Finder"
tell application "Finder" of machine
"eppc://user:email@hidden"
set sysFol to ,
(container of (first file
of folder "System Folder" of startup disk)) as
text
end tell
end using terms from
--> "Mac HD:System Folder:"
-- Rob
_______________________________________________
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.