• 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: Where's My Dialog?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Where's My Dialog?


  • Subject: Re: Where's My Dialog?
  • From: Deivy Petrescu <email@hidden>
  • Date: Tue, 23 Feb 2010 17:34:26 -0500

On 22/02/2010, at 18:56 , Marconi wrote:

> At 7:02 AM -0700 2/22/10, Robert Poland sent email regarding Re: Where's My Dialog?:
>> Marconi,
>>
>> try something like this;
>>
>> 			tell application "System Events"
>> 				activate
>> 				beep
>> 				display dialog "No selection was made." buttons "OK" default button 1 giving up after 4
>> 			end tell
>>
>> The call to System Events puts the dialog in the front.
>>
>
> That helps if I happen to be there. Often I am away and when I return, the dialog is nowhere to be seen, obscured by who knows what window(s).
>
> Is there a way to specify that a dialog float above other windows?
>

Marconi,
Most of the answers you got were related to the question as seen by someone who is going to be using an AppleScript to finish a task.
What I mean is, most of the time dialogs are notes along the way and not the end product.
Mainly because they are not really good as end products.
In your case, you do not want an AppleScript dialog, you want a notification that would stay on the screen visible enough to call your attention.
The same way you did not want to play a sound, you wanted a sound signal that would catch your attention and play for a while if necessary.
Well, thinking about that, I believe that the best way for you to display your message it is not via a dialog, it would be via a document that would have a large window displaying the text you would like to see.
As far as your problem goes, once this is up in the screen the script can quit .

I think play sound is a great tool for your sound signal.
Now instead of using a dialog, may I suggest you open the preferences of TextEdit and set the width of the window size of the new document to 200 and the height to 70. You can play around with this numbers.
Instead of the dialog, why not use the script below:
<script>
tell application "TextEdit"
	activate
	set mnwaf to make new document at front
	tell mnwaf
		set its text to "Check your hosts.
One or more have dropped off the network!"
		set font of its text to "Helvetica Bold"
		set size of its text to 64
	end tell
end tell
</script>

I think this would make more sense.

Deivy Petrescu
email@hidden



 _______________________________________________
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

References: 
 >Where's My Dialog? (From: Marconi <email@hidden>)
 >Re: Where's My Dialog? (From: Robert Poland <email@hidden>)
 >Re: Where's My Dialog? (From: Marconi <email@hidden>)

  • Prev by Date: Re: problems with folder actions since mac os x 10.5
  • Next by Date: Re: problems with folder actions since mac os x 10.5
  • Previous by thread: Re: Where's My Dialog?
  • Next by thread: how to tell iTunes to play specific song
  • Index(es):
    • Date
    • Thread