Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: selecting from dialog list by typing



On Oct 26, 2005, at 1:40 AM, Mikael Byström wrote:

In this type of dialog or similar, how can I move the current selection
in the list by typing the first letter, or even better several letters,
to get to the first fitting line?:

set newStorage to (choose from list thefolders with prompt "Move to which
folders")


Is there something built into Applescript or Mac OS X I can use or do I have to handle this on my own? Any suggestions?

You don't have to do anything; it's already built in.

--
"That boy ain't got no culture. You talk about Dylan, and he think you're talking about Dylan Thomas."

I beg to disagree with that.

This script won't allow me to get green. Unless I type "gre". I guess the list is accessed from the bottom up. Need to change the spelling of green to 6-green.

tell application "Finder"
set theDefaultList to {"none"}
set theColorList to {"none", "orange", "red", "yellow", "blue", "purple", "green", "gray"}
(* 0 = none , 1 = orange, 2 = red, 3 = yellow, 4 = blue, 5 = purple, 6 = green, 7 = gray *)


set theChoice to (choose from list theColorList default items theDefaultList with title "Color Selection" with prompt "Option key to select entire folder.")
if (theChoice is false) then return -- "User canceled."
end tell
--
Bob Poland - Fort Collins, CO
http://www.ibrb.org/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden


This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.