• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
'choose from list' question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

'choose from list' question


  • Subject: 'choose from list' question
  • From: Brennan <email@hidden>
  • Date: Mon, 12 Apr 2004 13:47:56 +0200

I'm interested to discover that this fails with error -1700

tell application "Finder"
choose from list (name of items of window 1)
end tell

whereas this works fine

tell application "Finder"
set frontmostWindowItemNames to (name of items of window 1)
choose from list frontmostWindowItemNames
end tell

..and so does this

tell application "Finder"
choose from list ((name of items of window 1) as list)
end tell

I understand that an expression like (name of items of window 1) is not
really a list, in fact, 'class of' returns {property, property,
property...etc.}

Given that this is not really a list, what is the correct name? I would
call it a 'group of elements', but that seems vague.

If assigning a group of elements to a variable automatically coerces that
group of elements to a list - without problem - why doesn't 'choose from
list' do the same?

Should I make an enhancement request on the bugreporter, or is there a
good reason for this behavior?

Brennan
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: Just submitted this to BugReporter as feature request - comments...
  • Next by Date: Re: 'choose from list' question
  • Previous by thread: Re: Frontmost App and --Script Menu-- (oops)
  • Next by thread: Re: 'choose from list' question
  • Index(es):
    • Date
    • Thread