Re: View every folder of a folder by name
Re: View every folder of a folder by name
- Subject: Re: View every folder of a folder by name
- From: Deivy Petrescu <email@hidden>
- Date: Tue, 17 Jul 2001 17:29:51 -0400
At 3:42 PM +0200 7/17/01, Olivier Berquin wrote:
Hi all,
I would like to view every folder of a folder by name
I write this, but... must I open every folder
Any idea ?
Olivier.
I think you must open every folder and the set view. Tried
everything, the Finder does not complain but it does not set the view
as well
The following script works, it walks thru all the folders and
subfolders of a given folder.
___<script>
tell application "Finder"
set FolderToClean to choose folder
my ViewName(FolderToClean)
end tell
on ViewName(thisFolder)
tell application "Finder"
set thisFolder to contents of (thisFolder)
open thisFolder
set view of container window of thisFolder to name --
container window of
close thisFolder
set lista to every folder of thisFolder
repeat with itm in lista
my ViewName(itm)
end repeat
end tell
end ViewName
___</script>
Deivy Petrescu
http://www.dicas.com