Re: How can we execute remote AppleScript?
Re: How can we execute remote AppleScript?
- Subject: Re: How can we execute remote AppleScript?
- From: Christopher Nebel <email@hidden>
- Date: Mon, 9 Nov 2009 10:30:24 -0800
On Apr 3, 2007, at 5:04 PM, Jon Pugh wrote:
At 3:43 PM -0500 4/3/07, Wallace, William wrote:
Does anybody else have any insights on this, because I'd like to
know the
answer too (this could be very useful to me if I can get it to work
reliably). I get a "user authentication failure" error. I am using
a valid
username/password combo, and have verified that remote apple
events are
enabled.
I don't know that this is the problem, but it may simply be that
you are not allowed to run osaxen (like beep and run script)
remotely. There used to be an osiz resource which specified if an
osax was allowed to run remotely. I'm not sure if there's any
corresponding technique to allow or prevent remote osaxen these days.
Indeed, "run script" does not allow remote execution -- it's a
security thing. In general, scripting addition commands that
trigger user interface are not allowed to run, though you can still
annoy the heck out of the remote user with "beep" and "say". [1]
Alternatively, if the target application is an AppleScript applet,
declare a handler: you can then "tell" the application remotely to
execute that handler. You could even deliberately circumvent the
security by declaring a handler like this:
on my_run_script(s)
run script s
end
To answer William's question, the remote/local check is done in code
these days; there's no simple way to turn it off.
--Chris Nebel
AppleScript Engineering
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden