choose from list bug?
choose from list bug?
- Subject: choose from list bug?
- From: Bill Briggs <email@hidden>
- Date: Wed, 4 Jul 2007 09:43:20 -0300
when I run this script snippet
-----------
set testList to {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "1", "2", "3", "4", "5"}
choose from list testList with title "Calendar Selection Window" with prompt "De-select any unwanted calendars." default items testList with multiple selections allowed
-----------
I get a selection list that has all of the list items selected (which is what I want). But when I run this snippet.
-----------
tell application "iCal"
set allCalNames to the name of every calendar
end tell
choose from list allCalNames with title "Calendar Selection Window" with prompt "De-select any unwanted calendars." default items allCalNames with multiple selections allowed
-----------
the resulting list has all but the last item selected. The only difference I can see is that the list from iCal is unicode text, and the other is not. I tested for differences in number of list items, and total characters in the names, and can't make the first snippet fail. I tried another application that returns unicode text and it selects all items in the list.
Can anyone reproduce the same effect? I don't see any reason why the entire list is not selected in the dialog.
- web
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden