FROM : Matt Neuburg
DATE : Mon Aug 14 19:49:04 2006
On Mon, 14 Aug 2006 10:49:18 -0400, Renaud Boisjoly <<email_removed>> 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_removed>, <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>
DATE : Mon Aug 14 19:49:04 2006
On Mon, 14 Aug 2006 10:49:18 -0400, Renaud Boisjoly <<email_removed>> 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_removed>, <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>
| Related mails | Author | Date |
|---|---|---|
| Renaud Boisjoly | Aug 14, 16:49 | |
| Matt Neuburg | Aug 14, 19:49 | |
| Renaud Boisjoly | Aug 14, 20:34 | |
| Stephen Deken | Aug 14, 22:09 | |
| Matt Neuburg | Aug 14, 23:02 |






Cocoa mail archive

