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: Shane Stanley <email@hidden>
- Date: Thu, 28 Jan 2016 08:58:11 +1100
On 28 Jan 2016, at 3:05 AM, Chris Page <email@hidden> wrote:
>
> 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.
I thought I meant that too, until I realised what I was doing wrong.
>
> 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.
Noted, thanks. One for the ASLG, I think.
--
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