Universal Access via keystroke
Universal Access via keystroke
- Subject: Universal Access via keystroke
- From: email@hidden
- Date: Mon, 13 Sep 2004 08:07:59 -0400
I am aware of how to use 'System Events' and 'keystroke' ...
-- if omitted 'Script Editor's 'Font, Show Colors' menu item is
selected by 'keystroke' below.
tell application "Finder" to activate
tell application "System Events"
tell process "Finder"
-- equates to 'Finder' 'Go, Computer' menu item selection.
keystroke "c" using {command down, shift down}
end tell
end tell
---
Regardless of what application is the front most I can manually [via
the keyboard] do 'Command <option> <control> 8' and toggle the screen
to 'White on Black'. Repeating the operation returns the screen to
normal viewing.
See 'System Preferences' 'Universal Access' - 'Seeing' tab for specifics.
Yes, one could use -
tell application "System Preferences" to set current pane to pane
"com.apple.preference.universalaccess"
tell application "System Events"
tell process "System Preferences"
tell tab group 1 of window "Universal Access"
click radio button "Seeing"
click button 3 -- 'Switch to White on Black' / 'Switch to Black on White'
end
end tell
end tell
What I cannot do is perform an AppleScript 'keystroke "8" using
{command down, option down, control down}' to toggle the screen to
'White on Black' or back.
What am I missing?, or reworded - how does one perform a global
keyboard equivalent operation* via AppleScript?
* - other examples:
'Command <option> =' - Zoom in.
'Command <option> -' - Zoom out.
Sincerely yours,
--
SJWL
_______________________________________________
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