• 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
Questions on approach
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Questions on approach


  • Subject: Questions on approach
  • From: Alex Zavatone <email@hidden>
  • Date: Mon, 15 Nov 2010 19:41:33 -0600

I'm using System Events to get access to the UI Elements of a table in a scrolling field in an app.   There are 4 columns in the table.  I'm able to access it just fine, but performance starts to crater as some time between one and one thousand rows in it.

So, I'm wondering about approaches here in accessing the data structure.    I've already tried duplicating it and accessing the duplicate but that doesn't seem to help.

Anyway, I'm wondering about anyone's approaches in speeding up data access in these cases.

This is what I'm trying:

set myWindow to window 1
copy table 1 of scroll area 1 of myWindow to myTable
set myRows to the number of rows of myTable
set myList to {}
repeat with myIndex from 1 to myRows
set myRow to entire contents of row myIndex of myTable
set myValue to the value of item 4 of myRow


It's taking about 2 to 3 seconds to get myValue.  Does anyone have any approaches that might speed this up a tad?  Thaaaanks, 

- Alex Zavatone
 _______________________________________________
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: Questions on approach
      • From: Brian Christmas <email@hidden>
    • Re: Questions on approach
      • From: AndrĂ© Renault <email@hidden>
  • Prev by Date: Re: Changing voice in VoiceOver
  • Next by Date: Re: Questions on approach
  • Previous by thread: Re: Outlook 2010
  • Next by thread: Re: Questions on approach
  • Index(es):
    • Date
    • Thread