Preference Pane stuff up in 10.0.3
Preference Pane stuff up in 10.0.3
- Subject: Preference Pane stuff up in 10.0.3
- From: Brian Christmas <email@hidden>
- Date: Sun, 12 Apr 2015 11:11:49 +1000
G’day scripters
The update to Yosemite 10.0.3 has stuffed up the ability to tell whether a System Preferences Pane is open or not.
A handler portion I rely heavily on now returns a constant ‘true’ when run, when testing for the visiblilty of ‘com.apple.preference.security', and to add to that, the handler opens up the ‘System Preferences’ window when opening the Pane on a second pass when the answer should be ‘false’.
I’ve tried getting the visible of the Pane, but that didn’t work.
Does any one know of an alternative method of determine if the Pane is visible or not, please?
Regards
Santa
tell application "System Preferences" activate tell pane id "com.apple.preference.security" to reveal anchor "Privacy_Accessibility" try repeat while exists pane id “com.apple.preference.security” —< THIS NEVER QUITS NOW tell current application to delay 0.1 if (current date) - (my theStartTime) > 40 then set displayDialogAD to displayDialogADSecond fieldAssistiveAccessAdvice's setStringValue:(displayDialogAD) fieldAssistiveAccessAdvice's display() tell current application's NSColorList to set AppleColors to colorListNamed_("Apple") set someColor to AppleColors's colorWithKey:"Red" fieldAssistiveAccessAdvice's setTextColor:someColor fieldAssistiveAccessAdvice's display() set my theStartTime to ((current date) - 30) activate end if end repeat end try end tell Here’s a test script.
tell application "System Preferences" activate tell pane id "com.apple.preference.security" to reveal anchor "Privacy_Accessibility" repeat while exists pane id "com.apple.preference.security" --< QUIT WITH THE RED CLOSE BUTTON, THIS NEVER QUITS NOW say (exists pane id "com.apple.preference.security") delay 4 end repeat end tell
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden