• 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
Requesting assistance with selecting from table
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Requesting assistance with selecting from table


  • Subject: Requesting assistance with selecting from table
  • From: Brian Christmas <email@hidden>
  • Date: Thu, 27 Jun 2013 19:33:23 +1000

G'day Scripters.

I have a table, ClientToChooseFrom,  with a column clientName that contains unparsed email addresses. Normally the user can click on an address, it's parsed, and the basic email address is added to another table, and saved.

I need to allow the user to select every email address if the so desire, and add them to the parsed list, but cannot work out how to select each unparsed address in turn.

The first row is my forlorn attempt at doing so. Any guidance please. Once each row is selected, I can call my parsing and saving handler.

Regards

Santa


 on addAllClients_(sender)
        tell theArrayController to set selRowsList to text items of clientname of ClientToChooseFrom
         set theSet to current application's NSMutableIndexSet's alloc()'s init()
        repeat with anIndex in selRowsList
             theSet's addIndex_(anIndex)
        end repeat
        repeat with eachEntry in theSet
            tell theArrayController to selectRowIndexes_byExtendingSelection_(eachEntry, false)
        end repeat
    end addAllClients

 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: PDF view
  • Next by Date: Re: Requesting assistance with selecting from table
  • Previous by thread: Re: PDF view
  • Next by thread: Re: Requesting assistance with selecting from table
  • Index(es):
    • Date
    • Thread