• 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
( NSAlert ) - Creating a simple Display Alert in ASOC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

( 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@hidden
http://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

  • Prev by Date: ( NSBundle ) - PATH to MainBundle, Resources, MacOS & a specific resource type
  • Next by Date: Changing boxes
  • Previous by thread: ( NSBundle ) - PATH to MainBundle, Resources, MacOS & a specific resource type
  • Next by thread: Changing boxes
  • Index(es):
    • Date
    • Thread