• 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
Re: Display Dialog
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display Dialog


  • Subject: Re: Display Dialog
  • From: Hanaan Rosenthal <email@hidden>
  • Date: Thu, 14 Apr 2005 10:17:59 -0400
  • Organization: Custom Flow Solutions

This may do, or you can always venture up to AppleScript Studio, where you
can have as many buttons as you want:

set user_stuff to display dialog "Enter Project Number:" default answer " "¬
buttons {"Exit", "OK"} default button "OK"
if (button returned of user_stuff) is "OK" then
	set project_number to text returned of user_stuff
	set theList to {"FS", "CR", "PP", "NZ", "HD", "SN"}
	set selected_items to¬
      (choose from list theList with prompt "Choose!" default items {"FS"} ¬
      without multiple selections allowed)
	set selected_item to item 1 of selected_items
end if


>
> Set user_stuff to display dialog "Enter Project Number:" default answer " "
buttons {'FS', "CR", "PP", "NZ", "HD", "SN", "Exit"} default button "FS"
> Set button_name to button returned of user_stuff
>
> I get error message "parameter error". {'FS', "CR", "Exit"} works fine.
>
> What I want is the users to enter project number and select a project type.
Is there another way to handle this?
>
> Thanks
> Ruby
>  _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Applescript-users mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
email@hidden
>
> This email sent to email@hidden
>

 _______________________________________________
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: Display Dialog
  • Next by Date: Re: Insert text and paste command
  • Previous by thread: Re: Display Dialog
  • Next by thread: RE: Display Dialog
  • Index(es):
    • Date
    • Thread