Re: "of machine" in 10.1?
Re: "of machine" in 10.1?
- Subject: Re: "of machine" in 10.1?
- From: Christopher Nebel <email@hidden>
- Date: Fri, 28 Sep 2001 17:54:16 -0700
On Friday, September 28, 2001, at 01:05 PM, Stonewall Ballard wrote:
Please excuse the probable FAQ, but I haven't been able to find a good
answer to this anywhere, including the list archives.
What has happened to programing linking on OS X, particularly on OS
10.1?
I have a script that says something like:
tell application "appname" of machine "machinename"
-- stuff
end tell
but when I compile it in OS X, the "of machine machinename" just
disappears!
Is there some other way to control apps on other Macs?
I'd be surprised if this was in a FAQ already, since program linking
wasn't supported at all in 10.0, and 10.1 has been generally available
for only a few days.
This is a known bug. Program linking is supported in Mac OS X 10.1, but
only using IP, which means you have to use an "eppc://" URL as the
machine name. The problem is that if it sees a machine name that isn't
an eppc URL, it will simply remove it.
One interesting thing you can do in Mac OS X is specify a user and
password directly in the URL -- no keychain setup required. It uses the
normal URL format for this, which is
eppc://[user[:password]@]hostname.domain
So, for example, you could say...
tell application "Finder" of machine
"eppc://bob:email@hidden"
...and it would (try to) authenticate you as bob with a password of
"password".
--Chris Nebel
AppleScript Engineering