Re: Apple Remote Events (eppc) and OS X server
Re: Apple Remote Events (eppc) and OS X server
- Subject: Re: Apple Remote Events (eppc) and OS X server
- From: Craig Sutherland <email@hidden>
- Date: Fri, 11 Jul 2003 13:40:25 -0500
Eric-
If you trying to use an applescript to target System Events on a OS X
server, there are going to be problems with the security that exists on
the server.
Authentication is used to identify you as an existing user.
Authorization determines, once you are identified as a user, what you
can do to the system of the computer.
To manage your server, you need to login to it from your workstation
with the appropriate credentials and use that log-on as your acces.
Craig
On Friday, July 11, 2003, at 12:22 PM, Eric Martel wrote:
I have activated the "Remote Apple Events" in the "Sharing" pane of
the System Preferences of my PM G4 running OS X server and also my
PowerBook running OS X (not server).
If i'm running the script at the end (having changed the IP address,
ID and pwd) from the PM G4 targeting the PB G4, I'll see in the "Log"
window all the applications running on my PowerBook. But when I'm
trying to running the script targeting a machine running OS X server,
I'm receiving an error.
It seems that the "System Events" application (but it's just an
exemple, all the other applications targeted are showing the same
issue) is requiring an "Authorization" and not just an
"Authentification" as for a machine running OS X (not server).
>snip<
Question : What are the steps to set-up the machine running OS X
Server to be able to accept Remote Apple Events ?
Here is the script :
set the IP_address to "IP_of_the_server"
set the remote_IP to ("eppc://user_ID:user_pwd@" & the IP_address)
set remote_sys_events to application "System Events" of machine
remote_IP
using terms from application "System Events"
tell remote_sys_events
set list_of_apps to name of application processes
set list_of_properties to frontmost of application processes
repeat with i from 1 to (length of list_of_properties)
if (item i of list_of_properties) then
set current_app to item i of list_of_apps
end if
end repeat
end tell
end using terms from
>snip<
_______________________________________________
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.