• 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
When does "item x of" auto-iterate?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

When does "item x of" auto-iterate?


  • Subject: When does "item x of" auto-iterate?
  • From: Thomas Summerall <email@hidden>
  • Date: Mon, 17 Mar 2008 13:19:20 -0400

     set myList to { {"a","b"}, {'"c","d"} }
     item 1 of my List

returns {"a","b"} as expected

    tell application "Finder"
          set myDisks to disks
          set firstDisk to item 1 of myDisks
    end tell

returns the first volume, as expected.

    tell application "Finder"
          set myItems to item 1 of disks
    end tell

returns a list containing item 1 of each volume.  Kind of neat, but why?  Bug or feature?

Thomas Summerall

 _______________________________________________
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

  • Follow-Ups:
    • Re: When does "item x of" auto-iterate?
      • From: Christopher Nebel <email@hidden>
  • Prev by Date: Re: Language-independent way to find Applications
  • Next by Date: Re: Language-independent way to find Applications
  • Previous by thread: Re: Language-independent way to find Applications
  • Next by thread: Re: When does "item x of" auto-iterate?
  • Index(es):
    • Date
    • Thread