• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Trying to keep a set-up windows open.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trying to keep a set-up windows open.


  • Subject: Re: Trying to keep a set-up windows open.
  • From: Brian Christmas <email@hidden>
  • Date: Mon, 08 Dec 2014 22:36:27 +1100


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



On 8 Dec 2014, at 3:12 pm, 2551 <email@hidden> wrote:

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
References: 
 >Trying to keep a set-up windows open. (From: Brian Christmas <email@hidden>)

  • Prev by Date: Trying to keep a set-up windows open.
  • Next by Date: Re: Trying to keep a set-up windows open.
  • Previous by thread: Trying to keep a set-up windows open.
  • Next by thread: Re: Trying to keep a set-up windows open.
  • Index(es):
    • Date
    • Thread