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

Re: Getting the row number of an item in a list


  • Subject: Re: Getting the row number of an item in a list
  • From: Peter Baxter <email@hidden>
  • Date: Fri, 10 Oct 2008 07:25:16 +1100

Yes, I was initially using that sort of idea, but kept getting no access to changing the name.  I used the index when I noticed that it changed without error.  Obviously the error was in my script, not the lack of access to the printer name.
On 10/10/2008, at 5:52 AM, Christopher Nebel wrote:

tell application "Printer Setup Utility"
set myList to name of every printer
tell me
choose from list myList
end tell
set newPrinterName to item 1 of the result
set current printer to printer newPrinterName
end tell

Applescript syntax is like English spelling:
Roughly, though not thoroughly, thought through.


Peter Baxter
email@hidden



 _______________________________________________
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

References: 
 >Getting the row number of an item in a list (From: Peter Baxter <email@hidden>)
 >Re: Getting the row number of an item in a list (From: Michelle Steiner <email@hidden>)
 >Re: Getting the row number of an item in a list (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Passing a Applescript Result to a FileMaker9 Variable
  • Next by Date: Re: Getting the row number of an item in a list
  • Previous by thread: Re: Getting the row number of an item in a list
  • Next by thread: Passing a Applescript Result to a FileMaker9 Variable
  • Index(es):
    • Date
    • Thread