• 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
Getting the row number of an item in a list
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting the row number of an item in a list


  • Subject: Getting the row number of an item in a list
  • From: Peter Baxter <email@hidden>
  • Date: Thu, 09 Oct 2008 12:52:53 +1100

Hi people,

I was wondering if anyone knows how to get the row number of an item in a list.  eg.

tell application "Printer Setup Utility"
set myList to name of every printer
tell application "System Events"
choose from list myList
end tell
set newPrinter to --the number of the relevant printer in my list.  If I choose the 5th printer in the list, I get 5.
end tell
 _______________________________________________
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: Getting the row number of an item in a list
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: Can the AppleScript implementation of an AS application be exposed via terminology?
  • Next by Date: Re: Getting the row number of an item in a list
  • Previous by thread: Re: Can the AppleScript implementation of an AS application be exposed via terminology?
  • Next by thread: Re: Getting the row number of an item in a list
  • Index(es):
    • Date
    • Thread