• 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: Finder can't count?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder can't count?


  • Subject: Re: Finder can't count?
  • From: Christopher Stone <email@hidden>
  • Date: Wed, 16 Feb 2011 20:43:37 -0600

On Feb 16, 2011, at 12:55, Robert Poland wrote:
Either my explanation was bad or my system is broken.
______________________________________________________________________

Hey Bob,

I think if you review your posts it's not quite clear that you have folders open in hierarchical list view.  I'm not criticizing mind you.  I just had to read pretty far through the thread before I got it.

This works reliably on my system reliably with many folders open and a total of 1785 items and is nearly instant:

tell application "Finder"
activate
set wdw to front window
tell application "System Events"
keystroke "a" using command down
end tell
delay 0.01
set sel to selection as alias list
set itemCount to length of sel
end tell

--
Best Regards,
Chris
 _______________________________________________
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: Finder can't count?
      • From: Robert Poland <email@hidden>
References: 
 >Finder can't count? (From: Robert Poland <email@hidden>)
 >Re: Finder can't count? (From: Michelle Steiner <email@hidden>)
 >Re: Finder can't count? (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: URL in Firefox
  • Next by Date: Re: Finder can't count?
  • Previous by thread: Re: Finder can't count?
  • Next by thread: Re: Finder can't count?
  • Index(es):
    • Date
    • Thread