RE: Display Dialog
RE: Display Dialog
- Subject: RE: Display Dialog
- From: "Ruby Madraswala" <email@hidden>
- Date: Thu, 14 Apr 2005 10:35:34 -0400
- Thread-topic: Display Dialog
Thanks Hanaan and Martin for your input.
I do have the choose from list in the script, I was trying to get the prompt and the list in one window. Is this possible with Applescript or with any other plug-ins.
Ruby
-----Original Message-----
From: Hanaan Rosenthal [mailto:email@hidden]
Sent: Thursday, April 14, 2005 10:18 AM
To: Ruby Madraswala; email@hidden
Subject: Re: Display Dialog
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