• 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: set width of column id name column to widthNameColumn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: set width of column id name column to widthNameColumn


  • Subject: Re: set width of column id name column to widthNameColumn
  • From: Christopher Stone <email@hidden>
  • Date: Mon, 13 Jan 2014 01:31:58 -0600

On Jan 12, 2014, at 19:00, Robert Poland <email@hidden> wrote:
Anyone have a clue on how to set the “column id name column” Width in Mavericks?
______________________________________________________________________

Hey Bob,

Yes.  I've been meaning to post about this.

-------------------------------------------------------------------------------------------

set altTarget to path to favorites folder
tell application "Finder"
if front window exists then
set _target to target of front window as alias
if _target = altTarget then set altTarget to path to home folder
tell front window
set bounds to {0, 44, 1040, 1196} # Must be less than the aggregate column widths.
if current view ≠ list view then
set current view to list view
end if
tell its list view options
set width of column id creation date column to 141
set width of column id modification date column to 141
set width of column id size column to 97
set width of column id name column to 450
end tell
set target to altTarget
set target to _target
end tell
end if
end tell

-------------------------------------------------------------------------------------------

Mavericks broke my old window-resize/column-resize scripts, so I've spent some time fiddling with it and have an imperfect workaround.

I think we're dealing with both bugginess in the Finder, and a change in the way it displays windows in list-view.

In Mavericks when you zoom a window beyond its columns the name column automatically widens, and this breaks the current name-width-setting in that window.

Depending upon the window width and the columns visible (other than the name column) it may or may not be possible to set the width of the name column AND changing the bounds of the window MAY break the name-width-setting you just set via Applescript.

So for experimental purposes you can reduce the columns in your front window to name, mod-date, and size.  Then run my script.  Then resize the window by hand.  Try widening it.  Try reducing the width.

Then turn on cre-date, kind, comments, and tags and run the script again.

This time it works - as long as you don't widen the window width beyond the sum of its columns.

You'll also notice that the changed width of the name-column is not registered unless you change the target and then jump back.

Personally I think any change I make to the window view with Applescript should be respected unless I do something silly like set the name-column-width to 10^4 or some damn thing.

I think changing the visible status of columns should be fixed.

And I think all columns available in the Finder should be included in its Applescript dictionary.

I have a number of scripts that change the bounds and column widths of windows based on certain criteria, and I know a lot of non-scripter Mac-Users who want their windows the way they want them as well.

--
Best Regards,
Chris

 _______________________________________________
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: 
 >set width of column id name column to widthNameColumn (From: Robert Poland <email@hidden>)

  • Prev by Date: set width of column id name column to widthNameColumn
  • Next by Date: Re: set width of column id name column to widthNameColumn
  • Previous by thread: set width of column id name column to widthNameColumn
  • Next by thread: Re: set width of column id name column to widthNameColumn
  • Index(es):
    • Date
    • Thread