• 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
Display Dialog - AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Display Dialog - AppleScript


  • Subject: Display Dialog - AppleScript
  • From: email@hidden
  • Date: Mon, 18 Feb 2002 05:43:51 EST

tell Finder

set x to "This is the example"
set Another_variable to " for you"
-- show the full dialog box options that I know how to use
display dialog x & Another_variable & " to learn from" buttons {"OK,
Cancel"} default button 1 with icon stop giving up after 29

end tell

Broken down, it's:
display dialog -- create a dialog box
x & Another_variable & "to learn from" -- displaying variable & variable &
string
buttons -- what buttons to show at the bottom of the dialog box
default button 1 -- make the first button the default (able to dismiss by
hitting the return or enter keys)
with icon stop -- showing the stop sign icon in the dialog box.
giving up after 29 -- make the dialog box go away on it's own in 29 seconds
if it's not acknowledged.

Simpler forms:

display dialog x & Another_variable & " to learn from."
display dialog x
display dialog "Wow!"
display dialog "Here's the example: " & x & Another_variable & " to learn
from."
display dialog "Wow!" buttons {"OK"}

=-= Marc
_______________________________________________
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.

  • Prev by Date: help with script writing
  • Next by Date: Re: Problems with speed & "Info For" [SCSI VS ATA at the hardware level]
  • Previous by thread: help with script writing
  • Next by thread: Re: Problems with speed & "Info For" [SCSI VS ATA at the hardware level]
  • Index(es):
    • Date
    • Thread