• 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: ignoring application completely
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ignoring application completely


  • Subject: Re: ignoring application completely
  • From: Paul Skinner <email@hidden>
  • Date: Wed, 22 May 2002 12:13:55 -0400

On Wednesday, May 22, 2002, at 11:28 AM, Paul Berkowitz wrote:

And does it even activate?

More info:
"scriptMinion" is running and is a stay-open application. It does activate appropriately and come to the front.

Might that be the issue?

Guess not.

What happens if you tell
it to beep without activating?

This script saved as an application WILL make a beep. Of course, the beep sounds the same as the one I'd get if I asked it to display a dialog without being frontmost. It would beep to alert me to the hidden dialog.

tell application "scriptMinion"
ignoring application responses
beep
end ignoring
end tell

This script saved as an application WILL NOT display a dialog. Nor does it beep.

tell application "scriptMinion"
ignoring application responses
display dialog "Hello"
end ignoring
end tell

This script saved as an application WILL NOT display a dialog. Nor does it beep, however, it WILL speak 'hello" without any delay or error.

tell application "scriptMinion"
ignoring application responses
display dialog "Hello"
say "Hello"
end ignoring
end tell

Is AS somehow realizing that the DD will require user interaction and filtering the AEs that are sent to include only non-UI commands?


--
Paul Berkowitz

From: Paul Skinner <email@hidden>
Date: Wed, 22 May 2002 11:17:55 -0400
To: AppleScript Users <email@hidden>
Subject: Re: ignoring application completely

I forgot to clarify that "scriptMinion" is just an empty script
saved as an application.

On Wednesday, May 22, 2002, at 10:57 AM, Paul Skinner wrote:

on talkAsnchronously(messageText, dur)
ignoring application responses
tell application "scriptMinion"
activate
display dialog messageText buttons {"Ok"} default button
"Ok" giving up after dur
end tell
end ignoring
end talkAsnchronously

When called from a script in an editor this handler gives me an
asynchronous dialog. When called by a running script It doesn't display
a dialog at all.
Can anyone tell me why? Removing the ignoring block restores the
dialog.

Thanks for your support.
--
Paul Skinner
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: ignoring application completely (From: Paul Berkowitz <email@hidden>)

  • Prev by Date: Re: ignoring application completely
  • Next by Date: Re: How to add text to the beginning of a file
  • Previous by thread: Re: ignoring application completely
  • Next by thread: Calling specific files
  • Index(es):
    • Date
    • Thread