AppleVNCServer help?

LuKreme kremels at kreme.com
Mon Nov 5 02:59:51 PST 2007


On 5-Nov-2007, at 03:54, Jared Earle wrote:
> On 11/5/07, LuKreme <kremels at kreme.com> wrote:
>> On 5-Nov-2007, at 02:25, Jared Earle wrote:
>>> This means Screen Sharing no longer works and I have no way of  
>>> getting
>>> a GUI to turn it off.
>>
>>
>> I think you would have to resort to GUI scripting from Applescript.
>> You know, click button 1 of control 3 of window 1 sort of thing...
>>
>> Trouble is, I think you have to script turning OFF ARD before you can
>> turn ON Screen Sharing?
>
> Turning off ADR is easy: kickstart -deactivate
>
> I did that yesterday and it worked after a reboot.

It's too bad the new system preferences don't have a scriptable  
Sharing pane.  Several others are scriptable and it's rather neat:

tell app "System Events"
  tell security preferences
    get properties
  end tell
end tell

or

tell app "System Events"
  get the properties of every login item
end tell

Works for Spaces and Network and several others, but not for sharing.   
I think you're stuck with UI scripting.

-- 
And Jesus, he wants to go to Venus


More information about the MacOSX-talk mailing list