( NSAlert ) - Creating a simple Display Alert in ASOC
( NSAlert ) - Creating a simple Display Alert in ASOC
- Subject: ( NSAlert ) - Creating a simple Display Alert in ASOC
- From: Paul G <email@hidden>
- Date: Wed, 17 Nov 2010 15:22:20 +1000
Create a simple Display Alert using ASOC:
-- Start of Code --
set
theAlert to current application's
NSAlert's
alertWithMessageText_defaultButton_alternativeButton_otherButton_informativeTextWithFormat_("Heading or Title of Alert", "Quit", "Continue", missing value, "Detailed information." & return & "More Detailed information on the next line.")
-- This will give you the return code as a number. Useful for creating a action based on the returned integer.
set theReply to (theAlert's runModal()) as integer
-- Don't forget to log every step to see what you are getting back:
log theReply
-- Fin of Code --
You can see the log information by selecting Run > Console > from X-Code menu's.
--
--
Regards,
Paul G
Professional Services Technician
Apple Certified Desktop Technician
Apple Certified Portable Technician
Apple Certified Macintosh Technician
Apple Certified Help Desk Specialist
Apple Certified Technical Co-Ordinator
Apple Product Professional (2008)
Paul Grice | Macintosh Specialist / Design & Development Officer
Operational Development | Information Management Services
Corporate and Professional Services
Department of Education & Training
Floor 11 | Education House | 30 Mary Street | Brisbane Qld 4000
T 3405 3814 | M 0402 643 758 | E
email@hiddenhttp://deta.qld.gov.au/
Our Vision | a clever, skilled and creative Queensland
Please consider the environment before printing this email
_______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden