G’day Phil
Thanks, but I’m afraid I’ve tried that. It seems that while all the code is running to set my App up, none of the three windows can display. Even if I generate an error during the running, the main window, nor my advice window, won’t open until the error dialog is dismissed, and the App idles.
What I thought was the setup advice window opening was actually TextEdit flashing, which I’m using to test for Assistive Access.
I thought there must be some sort of way to force a window to open during the startup process, but cannot find any references to such a procedure on the net.
Regards
Santa
on turnOnAssistiveDevices() try set my displayAssistiverDevicesFlag to true # flag to set visible of Assistive window set visible of windowAssistiveAccess to true # This does not generate an error windowAssistiveAccess's makeKeyAndOrderFront:me on error errmsg display dialog "turnOnAssistiveDevices " & errmsg end try
tell application "System Preferences" tell pane id "com.apple.preference.security" to reveal anchor "Privacy_Accessibility" activate try repeat while exists pane id "com.apple.preference.security" tell current application to delay 0.2 end repeat end try end tell set my displayAssistiverDevicesFlag to false end turnOnAssistiveDevices
Hi Brian,
You'll have to translate into ASObjC, but have you tried
[_window makeKeyAndOrderFront:self];
Best
Phil
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
|