Skip to content

Instantly share code, notes, and snippets.

@Aupajo
Last active October 12, 2019 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aupajo/8a0d2345d11b63156cbabdd76a800660 to your computer and use it in GitHub Desktop.
Save Aupajo/8a0d2345d11b63156cbabdd76a800660 to your computer and use it in GitHub Desktop.
Find out which 32-bit apps won't make the leap to Catalina
#!/usr/bin/env ruby
begin
require 'plist'
rescue LoadError
abort "Missing dependency. Please run: `gem install plist` and try again."
end
raw_output = `system_profiler SPApplicationsDataType -xml -detailLevel mini`
profiler_report = Plist.parse_xml(raw_output)
apps = profiler_report.dig(0, '_items')
puts "32-bit apps"
puts "==========="
apps.each do |app|
next if app['has64BitIntelCode'] == 'yes'
puts "* #{app['_name']} #{app['version']} – #{app['path']}"
end

Safest

Visit the Raw link on the 32bitapps.rb above and grab the URL.

From Terminal, run

gem install plist
curl RAW_URL_PATH_FROM_STEP_ABOVE | ruby

Simplest

gem install plist
curl https://gist.githubusercontent.com/Aupajo/8a0d2345d11b63156cbabdd76a800660/raw/d1931daeeff7651e2660f5c70c35692b1a433f5c/32bitapps.rb | ruby

Customisable

Download 32bitapps.rb, customise, run:

gem install plist
ruby 32bitsapp.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment