Re: Scripting Inkpad
Re: Scripting Inkpad
- Subject: Re: Scripting Inkpad
- From: Bruce Robertson <email@hidden>
- Date: Sat, 12 Feb 2005 18:14:24 -0800
> on 2005-02-10 4:37 PM, Bruce Robertson at email@hidden wrote:
>
>> I'm trying to script inkpad including selecting it from the menu bar when it
>> appears there - but I don't see any way to use System Events GUI scripting
>> to address the iconic menu items like clock, displays, sound, bluetooth,
>> etc. They do not seem to be registered as menu bar items.
>
> I have not been able to get GUI Scripting or accessibility to work with menu
> extras, but I have learned a few things in the effort. Perhaps you'll have
> better luck.
>
> The menu extras' menus are apparently controlled by the SystemUIServer
> application, in /System/Library/CoreServices. The area of the menu bar where
> they reside seems to be a separate window, and the individual menu items
> appear to be buttons witin that window. When a menu extra's menu is open, it
> appears to be a standard pop-up menu.
So I wonder what the mechanism is behind this? I have - perhaps living
dangerously - use Plist Editor to change some preferences to values that are
set by the control panel.
But just changing the prefs file doens't seem to do the job, so I wonder how
systemUIServer knows when to read and use the new values and display or
delete a menu item?
I'm trying to do two things: control the location of the inkpad window when
it is displayed; and turn on/off display of the window. The trickier part
seems to be displaying/undisplaying the window by doing the equivalent of
what the menu or control panel does when you choose show ink window.
Actually, I just learned that you can control a window that is minimized in
the dock. You can use GUI scripting to turn checkbox items off or on, and it
just doesn't care if the window is actually visible or minimized.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden