• 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: selection of finder list view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: selection of finder list view


  • Subject: Re: selection of finder list view
  • From: Luther Fuller <email@hidden>
  • Date: Sun, 21 Jan 2007 15:00:59 -0600

Don't use System Events for this. I'm not sure what you want to do, but run this script with an open list view window frontmost in the Finder ...

tell application "Finder"
	activate
	set frontWindow to (some window whose index = 1)
	set itemList to every item of frontWindow
	repeat with anItem in itemList
		select anItem
	end repeat
end tell

... then rethink your solution.

On Jan 21, 2007, at 1:20 PM, Alex da Franca wrote:

Hi list,

I am pretty new to applescript and I am having a hard time to figure out how to get the selected line(s) of a finder window in list view.

what I have so far is:

activate application "Finder"
tell application "System Events"
if UI elements enabled then
tell application process "Finder"
return value of attribute "AXSelectedRows" of outline 1 of scroll area 2 of splitter group 1 of window 1
end tell
end if
end tell

_______________________________________________ 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/mailman//archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: selection of finder list view
      • From: Alex da Franca <email@hidden>
References: 
 >selection of finder list view (From: Alex da Franca <email@hidden>)

  • Prev by Date: selection of finder list view
  • Next by Date: Re: selection of finder list view
  • Previous by thread: selection of finder list view
  • Next by thread: Re: selection of finder list view
  • Index(es):
    • Date
    • Thread