• 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: Jim Underwood <email@hidden>
  • Date: Sat, 25 Feb 2017 00:56:01 +0000
  • Thread-topic: Finder window views ?

Roland,

This script, extracted from Chris Stone's Script 2 posted on 2017-02-22, works fine for me, 
running from Apple's Script Menu (and from FastScripts), in
Finder 10.11.4 (10.11.4) on macOS 10.11.6.

BTW, I also have TotalFinder installed, but it seems to have no effect of the script.

I made a few, unimportant, changes to suit my preferences.  All are marked with ### @JMichaelTX



use AppleScript version "2.4" -- Yosemite (10.10) or later

use scripting additions


###   EXTRACTED FROM script 2 BY @ccstone ###


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

# Auth: Christopher Stone    ### MOD BY @JMichaelTX ###

# dCre: 2010/10/09 12:45

# dMod: 2017/02/20 05:11

# Appl: Finder

# Task: Resize front window to large default size.

#     : Special-Filters for various windows.

# Libs: None

# Tags: @Applescript, @Finder, @Resize, @Window, @Filter

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

property defaultWindowBounds : {0, 23, 844, 1196}

property defaultSideBarWidth : 140

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


try

  

  

  tell application "Finder"

    activate ## added by @JMichaelTX

    

    if (count of windows) > 0 then

      

      tell front window

        

        set winTarget to (its target) as text

        

        if current view ≠ list view then

          set current view to list view

        end if

        

        ### @JMichaelTX:  Removed all of the special cases ###

        

        --» Generic.

        tell its list view options

          set nameColWidth to width of column id name column

          set width of column id name column to 500

          set width of column id modification date column to 141

          set width of column id size column to 97

        end tell

        

        set bounds to defaultWindowBounds

        

        if toolbar visible = false then set toolbar visible to true

        if statusbar visible = false then set statusbar visible to true

        ### @JMichaelTX Mods ###

        --if sidebar width ≠ 135 then set sidebar width to defaultSideBarWidth

        set sideBarWidth to sidebar width    ### @JMichaelTX

        set sidebar width to defaultSideBarWidth    ### @JMichaelTX

        

      end tell

      

    end if

    

  end tell

  

on error errMsg number errNum

  beep

  tell me to display dialog "Error: " & errMsg & return & "Error Number: " & errNum

end try


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





Best Regards,

Jim Underwood
aka JMichaelTX


From: Robert Poland <email@hidden>
Date: Fri, Feb 24, 2017 at 4:18 PM
Cc: "ASUL (AppleScript)" <email@hidden>
Subject: Re: Finder window views ?

Le 24 févr. 2017 à 00:10, Robert Poland <email@hidden> a écrit :

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
 _______________________________________________
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: Robert Poland <email@hidden>
References: 
 >Finder window views ? (From: Jean-Christophe Helary <email@hidden>)
 >Re: Finder window views ? (From: Christopher Stone <email@hidden>)
 >Re: Finder window views ? (From: Robert Poland <email@hidden>)
 >Re: Finder window views ? (From: Yvan KOENIG <email@hidden>)
 >Re: Finder window views ? (From: Robert Poland <email@hidden>)

  • Prev by Date: Replacement for Finder?
  • Next by Date: fsitem ?
  • Previous by thread: Re: Finder window views ?
  • Next by thread: Re: Finder window views ?
  • Index(es):
    • Date
    • Thread