How to open folder, set list view, select all?

I need to open a folder

change it to list view

select all and…This is where I’m stuck!

You know how you press the right keyboard arrow to show all the subfolders of the folders that are selected? I need to know how to do that in a applescript. Below is what I have

tell application “Finder”
activate
make new Finder window to folder “testfolder” of folder “Desktop” of folder “robroqe” of folder “Users” of startup disk
set current view of Finder windows to list view
select items of folder “testfolder”
end tell

c’mon…I mean where else could I really go. Supposely the best were here…or so I thought. :frowning:

Quit whining. :wink:

If you are running Panther, or if you’ve installed System Events 1.2 [d/l] in Jaguar, something like this might work.

tell application "Finder"
	activate
	make new Finder window to folder "testfolder" of folder "Desktop" of folder "rjj" of folder "Users" of startup disk
	set current view of Finder windows to list view
	select items of folder "testfolder"
end tell

tell application "System Events" to keystroke (ASCII character 29)

Hopefully this will help to maintain the “best” rating for the contributors of this BBS. 8)

– Rob

I didn’t mean all that I said anyway…I knew it would grab your attention, and I’m glad…Thanks again

By the way I really enjoy this website allot

-robroqe :smiley: