cask 'alfred2' do version '2.8.8_443' sha256 '4306786f419195dbb937a721c9d029ccb3c397a23a9c03b980bb42be468c2fc3' url "https://cachefly.alfredapp.com/Alfred_#{version}.zip" name 'Alfred' homepage 'https://www.alfredapp.com/' auto_updates true accessibility_access true app 'Alfred 2.app' postflight do suppress_move_to_applications key: 'suppressMoveToApplications' end uninstall quit: 'com.runningwithcrayons.Alfred-2', login_item: 'Alfred 2' zap delete: [ '~/Library/Application Support/Alfred 2', '~/Library/Caches/com.runningwithcrayons.Alfred-2', '~/Library/Caches/com.runningwithcrayons.Alfred-Preferences', '~/Library/Preferences/com.runningwithcrayons.Alfred-2.plist', '~/Library/Preferences/com.runningwithcrayons.Alfred-Preferences.plist', '~/Library/Saved Application State/com.runningwithcrayons.Alfred-Preferences.savedState', ] end