• 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: Chris Page <email@hidden>
  • Date: Wed, 27 Jan 2016 08:05:39 -0800

> On Jan 27, 2016, at 2:59 AM, Shane Stanley <email@hidden> wrote:
>
> 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.

I thought you meant it mattered whether it was called from an ASOC script or from Objective-C code that the script uses, which I wouldn't expect to make a difference.

It makes sense that you have to call AEInteractWithUser() before using AppKit, not merely before displaying a window. I guess I wasn't explicit enough: call AEInteractWithUser() before using AppKit...and before each time you display a window that needs the user's attention.

--
Chris Page
The other, other AppleScript Chris


 _______________________________________________
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: Shane Stanley <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>)
 >Re: Displaying UI in AppleScriptObjC scripts (was Re: How to Run a "sudo" Terminal Command) (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Security Update [Was: Re: Script Library Search Order]
  • Next by Date: Re: Script Library caching
  • 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