Display Dialog - AppleScript
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.