Home > Mac administration, macOS, Scripting > Detecting installed 32-bit applications on macOS Mojave

Detecting installed 32-bit applications on macOS Mojave

Over the past couple of OS releases, Apple has made it increasingly clear that 32-bit applications are on the way out. Starting with macOS High Sierra 10.13.4, launching a 32-bit application for the first time will result in a message similar to this being displayed:

macOS High Sierra 10.13.4 and later

Macos high sierra 32 bit app alert

macOS Mojave 10.14.x

Macos mojave 32 bit app alert

When the Learn More… button in the alert window is clicked, the following Apple KBase article opens in your default web browser:

32-bit app compatibility with macOS High Sierra 10.13.4 and later
https://support.apple.com/HT208436

To help identify if and where 32-bit applications have been installed, you can use /Applications/Utilities/System Information.app‘s list of installed software to identify which installed applications show up with the following status:

64-Bit (Intel): No

Screen Shot 2019 01 30 at 4 02 22 PM

 

To assist with automating this task, a script is available which uses the /usr/sbin/system_profiler command line tool to detect all 32-bit apps installed in /Applications, /Library or /usr/local and output the list to a logfile stored in /var/log. For more details, please see below the jump.

The script does the following:

1. Checks to see if the script is being run as root.
2. Checks to see if the designated log file is present and creates it if it isn’t.
3. Uses /usr/sbin/system_profiler to pull the complete list of installed applications
4. Filters all applications that are not 64-Bit (Intel) applications.
5. Excludes all non-64-bit applications that are not stored in one of the following locations or their included directories:

/Applications
/Library
/usr/local

6. Outputs the following output to the log:

If any 32-bit applications are found in /Applications, /Library or /usr/local, the path to the delected 32-bit application or applications are listed in the log:

/path/to/32bit_application_name_here.app

Screen Shot 2019 01 30 at 4 06 31 PM

 

If no 32-bit applications are found in /Applications, /Library or /usr/local, the following is output to the log:

No 32-bit applications found in /Applications, /Library or /usr/local.

Screen Shot 2019 01 30 at 4 07 12 PM

 

The script is available below and also on GitHub at the following address:

https://github.com/rtrouton/rtrouton_scripts/tree/master/rtrouton_scripts/detect_installed_32_bit_apps

  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: