Anyway to create a dialog box using AppleScript?

Joined
Feb 22, 2006
Messages
318
Reaction score
7
Points
18
Location
Bristol, UK
Your Mac's Specs
MBP, 2.0Ghz, 2GB RAM, 120GB HDD, 1991 Powerbook 100, Gen 2 Nano, Gen 1 Touch
Is there anyway to do this? I wanted to create a script that loads a DB with a question, then the answer to the OK/Cancel would determine the next stage of the script.

Is this at all possible?
 
Joined
Sep 21, 2005
Messages
809
Reaction score
111
Points
43
Location
ohio
Your Mac's Specs
iBook G4 OSX Tiger
Yes it is possible. Here is one I wrote to start and stop Classic as an example. You should be able to adjust it to fit your needs
Code:
display dialog "Classic Mode" buttons {"Cancel", "Stop", "Start"} default button 3 with icon 2
if the button returned of the result is "Start" then
	tell application "Classic Startup" to activate
	
else
	tell application "Classic Support" to quit
	
	
end if
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top