• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Call an osax remotely?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Call an osax remotely? (From: Rob Jorgensen <email@hidden>)
 >Re: Call an osax remotely? (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Call an osax remotely?
  • Next by Date: Re: How do I format a number or Round a number?
  • Previous by thread: Re: Call an osax remotely?
  • Next by thread: Re: Call an osax remotely?
  • Index(es):
    • Date
    • Thread