GUI scripting disguised as AS ?
GUI scripting disguised as AS ?
- Subject: GUI scripting disguised as AS ?
- From: Jay Louvion <email@hidden>
- Date: Tue, 29 Nov 2005 14:24:30 +0100
Title: GUI scripting disguised as AS ?
Try the following, it’s rather disturbing:
Create a number of folders (they needn’t contain anything) and label some in red. Try to have some labelled at the bottom of your list (be it in column or list view). Then run the following, choose the folder containig all those labelled and non-labelled folders and do not resize the choose window to see all the folders. If this works as it does for me here, the list returned is incomplete and only reflects the folders in view or nearly in view in the GUI of the choose folder window. Eerie...
Christopher, Dave, care to comment ? ;-)
tell application "Finder"
set thefolder to (choose folder)
update thefolder
set EventCodeList to name of every folder of thefolder whose label index is 2
set Eventcode to EventCodeList's item 1
tell (choose from list EventCodeList default items Eventcode with prompt ¬
"Here are the folder with red labels:" OK button name "Strange, I thought...")
if it is false then return
set Eventcode to item 1
end tell
end tell
J.
Jay Louvion
Studio Casagrande
3, rue Müller-Brun
1208 Geneva
T+4122 840 3272
F+4122 840 3271
skypeme:
jaylouvion
www.studiocasagrande.com
_______________________________________________
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