Re: opening the folders in window 1
Re: opening the folders in window 1
- Subject: Re: opening the folders in window 1
- From: "Nigel Garvey" <email@hidden>
- Date: Fri, 13 Jan 2006 21:22:33 +0000
Robert Poland wrote on Fri, 13 Jan 2006 10:30:38 -0700:
>I'm trying to create a script that will walk through a folder and
>reset the view options of all of the folders in it.
>
>I start with a folder open as window 1. I have a script that will
>reset the view options. But the hang-up is opening the folders in
>window 1.
Hi, Bob. In OS X, the open folder is the 'target' of window 1. To make
that folder's subfolders open in the same window, you set its 'target' to
each of them in turn:
tell application "Finder"
activate
if exists Finder window 1 then -- make sure there is a window to toggle
set tgt to target of Finder window 1
else
return
end if
set x to every folder of tgt
repeat with i from 1 to length of x
set currentItem to (item i of x)
set target of Finder window 1 to currentItem
-- run script "iMac HD:Library:Scripts:Universal Scripts:setToListView"
end repeat
end tell
NG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden