Re: Hello, I'm new here (now there's a classic)
Re: Hello, I'm new here (now there's a classic)
- Subject: Re: Hello, I'm new here (now there's a classic)
- From: Kirill Kortchagin <email@hidden>
- Date: Fri, 17 May 2002 16:26:18 +0400
on 17.05.2002 14:00, macster at email@hidden ?? ??? ??????:
>
As said I'm new to Applescript out of a need that I'm sure Applescript
>
can do.
>
>
At our company we have a server volume where some folders are set to
>
view by icon and some by list. I need an Applescript that sets all
>
folders to list view.
>
>
Now I know how to set one folder via applescript but i dont know how to
>
set all folders within one disk to a set view. I take it I would use a
>
wildcard of some sort but cant find any info.
>
>
Please help me show Mac's are better in our company (we have 400 wintel
>
machines and 80 mac's) we had 60 macs when I started, help me make it more.
>
>
Gerard
Simple recursive procedure (selected folder itself does not proccesed)
tell application "Finder"
activate
set FirstFolder to disk choose folder with prompt "Select folder"
my ProcessFolder(FirstFolder)
end tell
on ProcessFolder(theFolders)
tell application "Finder"
repeat with x in folders of theFolders
open x
set FolderWindow to window of x
try -- don't close windows in process
tell FolderWindow
set view to 2
set sort direction to normal
set shows kind to true
-- other options you can find in Finder dictionary
-- and include them in script
close
end tell
end try
my ProcessFolder(x)
end repeat
end tell
end ProcessFolder
--
Aha-pupok
http://www.yezhe.ru/applescript/
email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.