Re: NSAppleScript no longer allows user interaction?
Re: NSAppleScript no longer allows user interaction?
- Subject: Re: NSAppleScript no longer allows user interaction?
- From: Matt Neuburg <email@hidden>
- Date: Mon, 14 Aug 2006 10:49:04 -0700
- Thread-topic: NSAppleScript no longer allows user interaction?
On Mon, 14 Aug 2006 10:49:18 -0400, Renaud Boisjoly <email@hidden> said:
>Hi all
>
>I've been using NSAppleScript's executeAndReturnError method to run
>various scripts from within my app. It has been working for years and
>now, it seems broken on my MacBook Pro.
>
>As I try to migrate to a Universal code base, it seems that I can no
>longer run scripts which try to interact with the user. If I do, I
>get a "No user interaction allowed" error.
>
>I'm just trying to have a script use the "Display Dialog" command to
>let the user know of something. It used to work, but now it doesn't.
>If I modify the AppleScript to talk to a specific app, it works, but
>that app's icon bounces in the Dock to let me know. Not fun... not
>what I'd like to happen and not what used to happen.
Tell the target app to activate before telling it to display dialog. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden