• 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: Displaying UI in AppleScriptObjC scripts (was Re: How to Run a "sudo" Terminal Command)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Displaying UI in AppleScriptObjC scripts (was Re: How to Run a "sudo" Terminal Command)


  • Subject: Re: Displaying UI in AppleScriptObjC scripts (was Re: How to Run a "sudo" Terminal Command)
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 27 Jan 2016 21:59:08 +1100

On 27 Jan 2016, at 8:50 PM, Chris Page <email@hidden> wrote:
>
> I can't think of a reason why it would matter exactly where it's called from. In what way is it still problematic?

I originally called it just before showing a window modally, and it didn't make any difference. I moved it to before a call of [self window] that instantiates the window, and it worked.
>
> Do you perform an “activate” (or call an equivalent API) to ensure your UI is frontmost and active? Does the window work after clicking on the window to activate it?

Yes. The effect is kind of hard to describe, but for example, row highlights don't show. And although you can click inside text fields, nothing appears in them. For example, I have one open now, and if I click in a text field and type, it's appearing in this email rather than the text field.

I can send an example off-list.

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Follow-Ups:
    • Re: Displaying UI in AppleScriptObjC scripts (was Re: How to Run a "sudo" Terminal Command)
      • From: Chris Page <email@hidden>
References: 
 >Re: How to Run a "sudo" Terminal Command (From: Christopher Nebel <email@hidden>)
 >Re: How to Run a "sudo" Terminal Command (From: Christopher Stone <email@hidden>)
 >Re: How to Run a "sudo" Terminal Command (From: Shane Stanley <email@hidden>)
 >Displaying UI in AppleScriptObjC scripts (was Re: How to Run a "sudo" Terminal Command) (From: Chris Page <email@hidden>)
 >Re: Displaying UI in AppleScriptObjC scripts (was Re: How to Run a "sudo" Terminal Command) (From: Shane Stanley <email@hidden>)
 >Re: Displaying UI in AppleScriptObjC scripts (was Re: How to Run a "sudo" Terminal Command) (From: Chris Page <email@hidden>)

  • Prev by Date: Re: Displaying UI in AppleScriptObjC scripts (was Re: How to Run a "sudo" Terminal Command)
  • Next by Date: Re: Security Update [Was: Re: Script Library Search Order]
  • Previous by thread: Re: Displaying UI in AppleScriptObjC scripts (was Re: How to Run a "sudo" Terminal Command)
  • Next by thread: Re: Displaying UI in AppleScriptObjC scripts (was Re: How to Run a "sudo" Terminal Command)
  • Index(es):
    • Date
    • Thread