Re: Displaying UI in AppleScriptObjC scripts (was Re: How to Run a "sudo" Terminal Command)
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