• 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 window views ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finder window views ?


  • Subject: Re: Finder window views ?
  • From: Robert Poland <email@hidden>
  • Date: Thu, 23 Feb 2017 16:10:26 -0700
  • Z-usanet-msgid: XID912VBwXkd2208X34

Chris,

Maybe I'm missing something (as Usual)  my clipping has no effect on the column widths.

tell application "System Events"
tell application "Finder"
tell front window
if current view ≠ list view then
set current view to list view
end if
set bounds to {1000, 23, 2075, 999}
tell its list view options
width of column id name column
set width of column id name column to 900
set width of column id modification date column to 141
set width of column id size column to 97
end tell
end tell
end tell
end tell


On Feb 22, 2017, at 4:36:PM, Christopher Stone <email@hidden> wrote:

On Feb 22, 2017, at 16:55, Jean-Christophe Helary <email@hidden> wrote:
I'm kind of tired of having to arrange the windows one by one so I was thinking of writing a script that would remove or add view items, change the sort order etc. at once. So that every time I meet a non conformant window, I just change it on the spot...


Hey Jean-Christophe,

Finder-view scripting is a bit problematic to the consternation (profanity elided) of many Mac scripters.

Some things work, and some things don't.

Some things only work after you refresh a window.

To add and remove elements to a window you'll have to use GUI-Scripting as in script 1 below.

If my memory serves it used to be possible to do something like set visible of column size column to true/false for some columns but not all – but this was broken back around Mountain Lion.

For more examples see script 2.


Robert Poland
Fort Collins, CO


 _______________________________________________
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

  • Follow-Ups:
    • Re: Finder window views ?
      • From: Yvan KOENIG <email@hidden>
References: 
 >Finder window views ? (From: Jean-Christophe Helary <email@hidden>)
 >Re: Finder window views ? (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Super slow 'do shell script' command OS X 10.11 vs 10.8
  • Next by Date: Re: tools !!!!
  • Previous by thread: Re: Finder window views ?
  • Next by thread: Re: Finder window views ?
  • Index(es):
    • Date
    • Thread