Re: selection of finder list view
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