Getting the row number of an item in a list
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