DZone
Performance Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Performance Zone > Keyboard Shortcut to Resize Finder Columns

Keyboard Shortcut to Resize Finder Columns

Resizing columns in Mac's Finder application is super handy. It's even more handy when you can do it with a keyboard shortcut.

Rob Allen user avatar by
Rob Allen
·
Feb. 24, 17 · Performance Zone · Opinion
Like (1)
Save
Tweet
2.67K Views

Join the DZone community and get the full member experience.

Join For Free

I like to use Finder in Column mode (⌘+3), i.e., this view:

Column view

One feature of this view is that you can resize all the columns to fit by alt + double clicking on the move handle between each column. There doesn't appear to be a keyboard shortcut for this operation, though, so I created one using Keyboard Maestro.

Keyboard Maestro can move the mouse around the screen and click with it, which is exactly what I need. There's a Click at Found Image action, which seemed like it was just what I needed. I took a screenshot of the handle and set up the action to look for it in the topmost window and then discovered that Click at Found Image fails if it finds more than one image. Most of the time, there's at least two columns visible in my Finder windows, so this was never going to work. I needed a different solution.

The solution was to use the For Each action, which iterates over a collection. One of the choices for the collection is found images. I have set up this KM macro:

Resize finder columns

The image I am looking for is dragged into the image well and set to be found in the front window, searched from left to right. Once the image is found, a list of actions can be run. In this case, I double click with the alt modifier slightly to the right and down a bit from the top left-hand corner of my screenshot of the handle, which automatically right-sizes all the columns in the window for me. As I only need this done one, I break the loop after double clicking the first handle.

Finally, I assigned it to the keyboard shortcut ⌥⌘R so that I can run it whenever I need to:

Right-sized column view

Column (database) Finder (software)

Published at DZone with permission of Rob Allen, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Biometric Authentication: Best Practices
  • Cross-Functional Team Management
  • The Power of Enum: Make Your Code More Readable and Efficient [Video]
  • JIT Compilation of SQL in NoSQL

Comments

Performance Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo