Re: Mac OS X Finder views
Re: Mac OS X Finder views
- Subject: Re: Mac OS X Finder views
- From: Jeff Shepherd <email@hidden>
- Date: Wed, 17 Jul 2002 08:48:55 -0700
I have a classic script that sets the finder view of window as follows
-- Set target folder to list view
set current view of container window of destFolder to name
-- set the folder columns displayed
set shows creation date of destFolder to true
set shows modification date of destFolder to false
set shows kind of destFolder to false
set uses relative dates of destFolder to false
set +class cuss; of destFolder to true
I'd like to do two things.
(1) Find the equivalent code to execute under OS X
Well, I didn't get any response from the list but continued to work
on this on my own. Here is what I came up with
property folderName : alias "Path:to:folder"
tell application "Finder"
set current view of container window of folderName to list view
set uses relative dates of list view options of container window of
folderName to false
repeat with i from 1 to number of column of list view options of
container window of folderName
set this_item to column i of list view options of container
window of folderName
if name of this_item as string = "modification date column" then
set visible of this_item to true
if name of this_item as string = "creation date column" then set
visible of this_item to false
if name of this_item as string = "size column" then set visible
of this_item to true
if name of this_item as string = "kind column" then set visible
of this_item to false
if name of this_item as string = "label column" then set visible
of this_item to false
if name of this_item as string = "version column" then set
visible of this_item to false
if name of this_item as string = "comment column" then set
visible of this_item to false
end repeat
set zoomed of container window of folderName to true
end tell
Interesting that one of the columns is a 'label' column, which
indicates at some time we might get labels back into the finder in OS
X
(2) have an if/then that checks whether this script is running under
OS X or classic and run the appropriate code
Anyone want to give me some help on item 2?
- Jeff -
--
(Jeff Shepherd)
<email@hidden>
<
http://www.aShep.com/>
"Dance to Live!"
_______________________________________________
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.