Re: User Input
Re: User Input
- Subject: Re: User Input
- From: Michelle Steiner <email@hidden>
- Date: Tue, 14 Dec 2004 22:34:38 -0700
On Dec 14, 2004, at 10:19 PM, Dustin Bell wrote:
Here's a question for everyone, I work at a newspaper and I am working
on a script to delete commerical job pages and rif files that we have.
I have it set up so the user can choose from a list. What I want the
Finder to do is display the dialog "Are you sure you want to delete"
and then the name of which ever job the user chooses, below is what I
have so far.
set alljobs to {"Ag in Class", "Aims", "At Home", "Boulder Weekly",
"Bull Horn", "Champ Dodge", "Chinese Monthly", "Coupon Book", "Denver
Courier", "Drive West", "Fort Collins Weekly", "H.S. tabs",
"Healthbeat", "La Tribuna", "NEJC", "NFP", "North 40", "Onion", "Parent
Mag", "Prairie Times", "RMFP", "Rodeo News", "Screamer", "Senior
Voice", "Sigs We Print", "The Group", "Trib Extra", "Trib We Print",
"TV Preview", "UNC", "Valley Times", "Work Out West", "WSFP", "YMCA"}
set joblist to (choose from list alljobs with prompt "Which job do you
wish to delete?" without multiple selections allowed)
set theresult to item 1 of the result
set confirm to button returned of (display dialog "Are you sure you
want to delete " & theresult & "?" buttons {"Yes", "No"} default button
"Yes")
if confirm is "Yes" then
--delete the job
else
--handle nonconfirmation
end if
-- Michelle
--
"I'll do the best I can do because that's the best I can do!"
_______________________________________________
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
References: | |
| >User Input (From: "Dustin Bell" <email@hidden>) |