• 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: Finder scripting bugs
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder scripting bugs


  • Subject: Re: Finder scripting bugs
  • From: Luther Fuller <email@hidden>
  • Date: Sat, 29 Aug 2009 13:13:00 -0500

On Aug 29, 2009, at 11:40 AM, Bill Cheeseman wrote:
In Leopard, the script put the front Finder window into list view, made the version column visible, and set the index (column position) of the version column to 2. The version column then appeared right next to the name column.

In Snow Leopard, the indexes of the following columns remain unchanged, so that I end up with two columns having index 2 and none having index 7. The column positions do not change, and the version column does not become visible.

Which prompted me to look at a handler I use to customize list view folders.

on setWindowAttributes(winRef)
tell application "Finder"
set current view of winRef to list view
ignoring application responses
set icon size of list view options of winRef to small
set visible of column modification date column of list view options of winRef to true --< note 1
set visible of column creation date column of list view options of winRef to false
set visible of column size column of list view options of winRef to false
set visible of column kind column of list view options of winRef to false
set visible of column label column of list view options of winRef to false
set visible of column version column of list view options of winRef to false
set visible of column comment column of list view options of winRef to true
set uses relative dates of list view options of winRef to false
end ignoring
set sort column of list view options of winRef to modification date column --< problem
set width of column name column of list view options of winRef to 300
end tell
end setWindowAttributes ----------------------------------------------

It no longer works. The new folder shows the default columns and, it seems, you can't change that with applescript.

Note 1: If you change this line to 'false', then the mod date column remains visible, but the line marked
"--< problem" errors with the message "Finder got an error: A column must be visible to make it the sort column."

This effectively cancels plans I had to release a new version of my shareware.

I do hope you are bug reporting this.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Finder scripting bugs (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Getting Mailbox problem....
  • Next by Date: Re: Slowing Down
  • Previous by thread: Finder scripting bugs
  • Next by thread: Re: Finder scripting bugs
  • Index(es):
    • Date
    • Thread