Lua Script to Start, Unhide, and/or Auto-Arrange

I'm starting to try using HammerSpoon, which is driven by Lua, for automatically arranging my applications depending on application scenarios.

I have 3 screens, including a MacBook Pro at Retina native resolution and a Seiki 4K display. I grabbed the names of the monitors from Display Menu's menu bar menu.

I initially made the mistake of looking for "Outlook", "OneNote", and "Chrome", but all three applications require their respective company's names to be included in the application name.

Excel for Mac Breaks Up Spreadsheets Into Pages

Excel for Mac seems to use "Page Layout" view by default. This can be switched to the more sane Normal view by selecting View -> Normal from the menu.

You can change the default view in Excel -> Preferences -> View -> Preferred view for new sheets.

Still trying to figure out if there is a way to force all document openings to this setting as well.

Trying to Dig a Little More In-Depth With Maven

I've been reading Maven: The Definitive Guide (affiliate link) as a Kindle eBook and finally got to the point of trying the first example project. The book had mentioned that maven might be installed on Mac OS X already (due to usage with some versions of XCode). Magically, it's there:

So far, I like the book's approach to Maven.  It evangelizes maven as a tool, but puts the purpose of Maven in context, and explains, "Why Maven?" as well as explaining that "Maven or Ant?" is the wrong question.

If you're looking to download the files to complete the example Maven projects, they've moved from the URLs in the Kindle version of the book because Maven: The Definitive Guide has been split into two books, Maven by Example and Maven: The Complete Reference.

All the project examples can still be downloaded from a single zip file from the Maven by Example book. However, the chapter numbers are not the same in the Maven by Example book, and the folders in the examples are named by a chap-{title} convention.

Within the zip file:

  • Chapter 4's project (Simple Weather Application) (originally at or is now available in the zip file under:
    • ch-custom/simple-weather
  • Chapter 5's project (Simple Web Application)
    • ch-simple-web/simple-webapp



MacBook Pro setup list.

Some things that I've set up on my MBP:

  • Terminal Settings
    • ~/.profile
      • Changed prompt
      • Default is 'h:W u$ ' [ Computer-Name: current-directory username$ ]
      • Changed to '[w] '
      • man bash, find "PROMPTING" for escape codes
  • Editors
    • TextEdit - for simple text files, quick code tweaks
    • XCode [default code editor] - for longer code edit sessions and code viewing
    • macvim - for text file batch editing, power code substitution
  • Programming
  • XCode
  • git for Mac
  • Twitter
  • TweetDeck for Social Media Monitoring
  • Nambu for compact Twitter monitoring with lists
  • Tweetie for Twitter as a stream only
  • Mail
  • Mac Mail 4.2 connected to Exchange server is more useful than Outlook on Windows with Desktop Search or Xobni