• 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: Christopher Stone <email@hidden>
  • Date: Sat, 25 Feb 2017 06:13:21 -0600

On Feb 25, 2017, at 05:42, Yvan KOENIG <email@hidden> wrote:
I'm puzzled.
When I run the original script posted by Robert or the Chris's one,
I get a name column whose real width is 390 pixels …


Hey Yvan,

Bob didn't set the target to jump out and jump back to “fix” the change.

If you didn't either then that would explain some of what's up.

--------------------------------------------------------
set jumpDir to path to favorites folder

tell application "Finder"
   tell front window
      set targetFolder to its target as alias

      

      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
         set oldWidth to width of column id name column
         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 500
      end tell

      

      if targetFolder ≠ jumpDir then -- “Fix” the changes.
         set target to jumpDir
         set target to targetFolder
      end if

      

   end tell
end tell
--------------------------------------------------------

You can also have problems if too few columns are visible in the given Finder window.

--
Take Care,
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: 
 >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>)
 >Re: Finder window views ? (From: Jim Underwood <email@hidden>)
 >Re: Finder window views ? (From: Robert Poland <email@hidden>)
 >Re: Finder window views ? (From: Jim Underwood <email@hidden>)
 >Re: Finder window views ? (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: Finder window views ?
  • Next by Date: Opening Scripts from the Web
  • Previous by thread: Re: Finder window views ?
  • Next by thread: Re: [ANN] Table dialogs
  • Index(es):
    • Date
    • Thread