Created
February 4, 2016 23:52
-
-
Save ryanmoon/3c16507db2ce370af0dd to your computer and use it in GitHub Desktop.
Adobe Version Finder, finds current version of installed Adobe CC 2015 Applications
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
######################################### | |
# Adobe CC 2015 Version Finder | |
# Ryan Moon | |
# Created on 2016-02-04 | |
# Version 1.0.0 on 2016-02-04 | |
######################################### | |
# This script gets the CFBundleShortVersionString | |
# of the Adobe CC 2015 Applications. | |
# Handy for reference when looking at multiple | |
# machines, and you want to know if there's a version | |
# mismatch | |
# Default output is /tmp/adobe_results_$(hostname) | |
######################################### | |
main() { | |
# Output destination | |
local output_path="/tmp/adobe_results_$(hostname)" | |
# Array of paths for Adobe Applications | |
adobe_apps=( Adobe\ After\ Effects\ CC\ 2015/Adobe\ After\ Effects\ CC\ 2015.app | |
Adobe\ Audition\ CC\ 2015/Adobe\ Audition\ CC\ 2015.app | |
Adobe\ Bridge\ CC/Adobe\ Bridge\ CC.app | |
Adobe\ Character\ Animator\ \(Preview\)/Adobe\ Character\ Animator\ \(Preview\).app | |
Adobe\ Extension\ Manager\ CC/Adobe\ Extension\ Manager\ CC.app | |
Adobe\ Flash\ CC\ 2015/Adobe\ Flash\ CC\ 2015.app | |
Adobe\ Illustrator\ CC\ 2015/Adobe\ Illustrator.app | |
Adobe\ Media\ Encoder\ CC\ 2015/Adobe\ Media\ Encoder\ CC\ 2015.app | |
Adobe\ Photoshop\ CC\ 2015/Adobe\ Photoshop\ CC\ 2015.app | |
Adobe\ Prelude\ CC\ 2015/Adobe\ Prelude\ CC\ 2015.app | |
Adobe\ SpeedGrade\ CC\ 2015/Adobe\ SpeedGrade\ CC\ 2015.app | |
Adobe\ Premiere\ Pro\ CC\ 2015/Adobe\ Premiere\ Pro\ CC\ 2015.app | |
) | |
echo "<--- Starting! --->" | |
# Echo Date to output path file/create new | |
echo $(date "+%Y-%m-%d") > $output_path | |
# Place a blank line | |
echo >> $output_path | |
# For loop to cycle thru array and provide info to output_path file. | |
for ((i=0; i<${#adobe_apps[@]}; i++)); do | |
echo "***" >> $output_path | |
echo "${adobe_apps[$i]}" >> $output_path | |
defaults read /Applications/"${adobe_apps[$i]}"/Contents/Info.plist CFBundleShortVersionString >> $output_path | |
echo "---" >> $output_path | |
done | |
echo "<--- Finished! ---> " | |
exit | |
} | |
# Script | |
main "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment