Re: Finder can't count?
Re: Finder can't count?
- Subject: Re: Finder can't count?
- From: Robert Poland <email@hidden>
- Date: Wed, 16 Feb 2011 21:09:55 -0700
Chris,
One problem with being mostly self taught, geek talk is hard to learn.
Your script works great.
On Feb 16, 2011, at 7:43 PM, Christopher Stone wrote:
> 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
Robert Poland - Fort Collins, CO
_______________________________________________
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