• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mac OS X Finder views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Mac OS X Finder views
      • From: Sven Ryen <email@hidden>
    • Re: Mac OS X Finder views
      • From: "Robert C. Jacobson" <email@hidden>
References: 
 >Mac OS X Finder views (From: Jeff Shepherd <email@hidden>)

  • Prev by Date: Finding Remote Mounted Volumes (OS X)
  • Next by Date: Streams Sampler source-code anywhere?
  • Previous by thread: Mac OS X Finder views
  • Next by thread: Re: Mac OS X Finder views
  • Index(es):
    • Date
    • Thread