• 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
Code Snippet (poor man's help)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Code Snippet (poor man's help)


  • Subject: Code Snippet (poor man's help)
  • From: "Grimm, Kenneth" <email@hidden>
  • Date: Wed, 15 Jun 2005 11:27:18 -0400

I doubt this is unique, but let me feel like I made *some* contribution...
=)

Here is a cool (to me) framework for a poor man's "help" system -- hope
someone can use it.

set answerOK to false
repeat until answerOK is true
	display dialog "Dialog text here" default answer "Default answer"
buttons {"What is \"Help?\"", "OK"} default button 2

	if button returned of result is "OK" then
		set myResult to text returned of result
		set answerOK to true
		exit repeat
	else
		display dialog "The \"help\" you seek is here."
	end if
end repeat

Ken

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: OT: Re: it's all true
  • Next by Date: Re: Scripting textedit the revenge
  • Previous by thread: Re: applescript "open location"
  • Next by thread: Automator run handler doesn't run
  • Index(es):
    • Date
    • Thread