Motherboard Forums


Reply
Thread Tools Display Modes

Listed Folder view for all folders

 
 





















fabian
Guest
Posts: n/a

 
      01-16-2004, 10:19 AM


I asked me if it's possible to set list view for all folders. Its to
stupid to open up all folders and set them to list view. Could this be
done through the command line?

 
Reply With Quote
 
Fetch, Rover, Fetch
Guest
Posts: n/a

 
      01-16-2004, 11:26 PM
yes see the following applescript. Paste this into Script editor, save as an
applet - you can then drag n drop folders or disks onto the applscript applet
to set all windows to list view. (this also change window default postion
column size and window size - you can adjust these as you see fit.

This will take between 30 and 40 minutes to do an entire drive.

script starts below dotted line

--------

on open theList
repeat with a from 1 to count theList
set cItem to (item a of theList)
if (isFolder(cItem)) = true then SetViews(cItem)
end repeat
end open

on isFolder(thePath)
tell application "Finder"
if kind of thePath = "folder" then return true
return false
end tell
end isFolder

on SetViews(theFolder)
set theSubFolderList to getFolderList(theFolder)
repeat with a from 1 to count theSubFolderList
set cSubFolder to item a of theSubFolderList
SetViews(cSubFolder)
end repeat
setFolderView(theFolder)
end SetViews

on getFolderList(theFolder)
tell application "Finder"
return every folder of theFolder
end tell
end getFolderList

on setFolderView(theFolderPath)
tell application "Finder"
open theFolderPath
---> NOTE: The terminology in the following line has changed from OS 9.
-- set current view of container window of theFolderPath to
list view
-- set zoomed of container window of theFolderPath to true
-- close container window of theFolderPath
end tell
end setFolderView


fabian wrote:
> I asked me if it's possible to set list view for all folders. Its to
> stupid to open up all folders and set them to list view. Could this be
> done through the command line?
>


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OT--OE deleted files folder and B/U MZB Dell 4 01-15-2007 04:17 AM
displaying folder size in list view on OS X ? oliv Apple 2 10-30-2003 08:18 AM
Sharing folders outside of my home folder Dan Apple 5 10-29-2003 04:47 PM
Re: OS X - moved the 'Library' folder, & don't have (can't get?) 'privileges' to put it back...! Michael Vilain Apple 1 09-20-2003 09:59 AM
OSX: not ready to switch yet nosredna Apple 11 07-02-2003 03:50 AM


All times are GMT. The time now is 01:14 PM.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43