Re: Scripting Finder view of folder
Re: Scripting Finder view of folder
- Subject: Re: Scripting Finder view of folder
- From: Laine Lee <email@hidden>
- Date: Fri, 22 Jan 2010 19:45:31 -0600
- Thread-topic: Scripting Finder view of folder
Title: Re: Scripting Finder view of folder
On 1/22/10 5:31 AM, "John Mitchell" <email@hidden> wrote:
> I have a script which opens a folder in list view.
>
> tell app "Finder"
> open folder originalLoc
> set toolbar visible of window 1 to false
> set current view of window 1 to list view
> end tell
>
> I then want to turn the on the contents of a folder in the list ie
> "turn" the arrow down.
>
> Is this scriptable?
I would like to be able to offer you a script that performs a click with a modifier key down, but I can't. If there's no toolbar, as you've indicated, and you have "enable access for assistive..." turned on (and I'm not sure if you need Snow Leopard or not, I have it), then maybe this is somewhere to start.
tell application "System Events"
tell process "Finder"
set itemcount to get count rows of outline 1 of scroll area 1 of splitter group 1 of front window
repeat with i from 1 to itemcount
try
click UI element 1 of group 1 of row itemcount of outline 1 of scroll area 1 of splitter group 1 of front window
end try
set itemcount to itemcount - 1
end repeat
end tell
end tell
Laine Lee
_______________________________________________
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