LastPass workflow for Alfred v1.2 released

Today marks the release of v1.2 of the LastPass workflow for Alfred. The focus of this release has been to improve stability and reliability as well as to resolve some login issues people have been having. Please let me know if you have any issues (either via the official forum post, or by logging an issue on the official github repository) in case there are still some slightly different configurations out there the workflow is not yet dealing with.

Changes in this release include:

  1. Bug – Removed deprecated framework code
  2. Bug – Merged pull request #4 from jsquyres “we-love-macports-too” to support macports installs of the lastpass-CLI
  3. Bug – Further improved on jsquyres code to support some additional install locations.
  4. Bug – Fixed bash script reliability, after two login attempts the script was often failing.
  5. Improvement – Improved sync behaviour to better support extremely large vaults.
  6. Improvement – Added new ‘lpsync’ command to force a sync on demand.
  7. Improvement – Changed behaviour to store login email in your Apple Keychain (set with ‘lpsetemail‘).
  8. Improvement – Added the ability to set the logout timeout and store in the keychain (set with ‘lpsettimeout NUMSEC’ where NUMSEC is an integer such as 28800, if you use 0 that will keep you logged in until your computer restarts).
  9. Improvement – Added hotkeys to the main functions.

Also, please see the below YouTube video which demonstrates the workflow behaviour and outlines some of the changes in this release.

Custom Terminal Applescripts for Alfred to Fix iTerm Behaviour

I have put together some custom terminal applescripts in the last week for those that use Alfred for the Mac and iTerm. For those of you that have been finding finding issues with some of the newer versions of iTerm (including iTerm 2, and 2.9) and getting them to work reliably with Alfred, all this has required is an update to the Applescripts that are being used by Alfred to keep up with the (seemingly rapid) changes to the functions iTerm exposes with Applescript. Some issues I have faced go so far as iTerm simply not opening (where there were multiple iTerm binaries on the system), and sometimes commands not being passed through to newer versions.

There are two versions of the script available:

Each of these can be inserted into Alfred by following these steps:

  1. Load the Alfred control panel
  2. Click the Features Button/Tab
  3. Click on the “Terminal/Shell” menu on the left hand side
  4. Select “Custom” under application, and replace the text in the new box that appears with the code as per the version of iTerm you are running.

iTerm 2.1 Branch Custom Terminal Script Features:

The 2.1 branch script is very basic and just corrects the opening of iTerm and creating a new session properly.

iTerm 2.9 Branch Custom Terminal Script Features:

The 2.9 Branch goes a bit further to utilise some of the new features of iTerm 2.9 (which is in beta at the moment and can be downloaded if you are feeling adventurous from the iTerm download page). The script has been designed to achieve the following:

  • Open the correct iTerm binary under /Applications/ regardless of if another iterm/iTerm binary exists on the system
  • Always create a new tab/session, unless iTerm is not running, in which case use the default session.
  • If the user has selected to not create a default session on iTerm startup, detect and create a default session.

Future Updates:

As new versions come out of the 2.9 branch I will keep the scripts up to date and post details to the official AlfredApp community forum post, if anyone finds issues with the 2.1 branch please let me know either there, or in a comment below and I will test things out.

If you would like to look at/contribute to the official repository please check it out on Github –>…ipts-for-alfred.

As always, I welcome ideas/thoughts/feedback etc.


Default Browser workflow for Alfred

DefaultBrowser Alfred Workflow IconI am happy to release version 1.1 of the Default Browser workflow for Alfred.

This is a workflow that I have been putting together for some time and today I have released a major update to include more browsers, improved speed and a general overhaul of awesomeness.

If you have ever wanted to be able to quickly switch browsers on OSX, this might just be up your alley. My biggest desire was to be able to switch between Chrome (just an awesome browser) and Safari (for when I need to be power conscious while running on battery). This Alfred workflow fits that bill perfectly.

Where you can get it

  1. Download the .alfredworkflow file from github directly
  2. Check out the official post on the Alfred Community forums
  3. Have a browse of the workflow on Packal – the global repository for Alfred workflows


This workflow represents many hours effort of development, testing and rework. The images that have been licensed for this workflow from DepositPhotos also needed a bit of my moolah. So if you love the workflow, and get use out of it every day, if you would like to donate as a thank you to buy me more caffeine giving Diet Coke, some Cake, or to put towards a shiny new gadget you can donate to me via Paypal.

Paypal donate button




Browsers currently supported:

  • Chrome
  • Firefox
  • Opera
  • Safari
  • Chromium – New in V1.1
  • Canary – New in V1.1
  • SeaMonkey – New in V1.1

Change Log

  • Version 1.1 – Feature Release
    • Feature: Support additional browsers – added Chromium, Canary and SeaMonkey
    • Feature: Only show installed browsers
    • Feature: Indicate which browser is the current default
    • Feature: Added hotkey assignments (to launch workflow, launch with “chrome”, and launch with “safari”)
    • Improvement: Renamed description in Alfred to simply “Default Browser”
    • Improvement: Improved failure feedback
    • Improvement: Major code refactor to remove duplication and speed up the workflow
    • Improvement: Added an icon to the workflow
    • Improvement: defaultbrowser binary has been updated to better support integrating. This code has been put into a pull request for the official publication of defaultbrowser.


defaultbrowser binary for OSX has been created by Margus Kerma.

  • Margus has been kind enough to permit me to include the binary for defaultbrowser as part of this workflow to make distribution significantly easier.
  • For any issues with the defaultbrowser binary please log these to the official DefaultBrowser Issue Tracker.

DefaultBrowser Alfred workflow created by Stuart Ryan. If you would like to get into contact you can do so via:


With the exception of the workflow logo, this Alfred Workflow is provided free of charge under the GNU GENERAL PUBLIC LICENSE Version 2 June 1991.

The workflow logo is licensed only for use in this workflow and must be changed if the workflow is forked in the future.

The workflow logo has been licensed from DepositPhotos to Stuart Ryan.
DefaultBrowser Example Screenshot 1 - List Installed Browsers

DefaultBrowser Example Screenshot 2 -  Set Safari as Default

DefaultBrowser Example Screenshot 3

DefaultBrowser Example Screenshot 4 -  No such browser installed error