Created
March 18, 2015 18:28
-
-
Save nmcspadden/4b50e86c418100e23ce6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
[ -z "$1" ] && echo "This script requires a path to output the app icons in PNG format." | |
# Use /usr/bin/sips to copy the app icon out of the App bundle for each of the Adobe CC products | |
# and convert into png format | |
# Acrobat Pro 11 | |
APP="/Applications/Adobe Acrobat XI Pro/Adobe Acrobat Pro.app" | |
APP_ICON="ACP_App.icns" | |
OUTPUT_PNG="AdobeAcrobatPro11.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# After Effects CC 2014 | |
APP="/Applications/Adobe After Effects CC 2014/Adobe After Effects CC 2014.app" | |
APP_ICON="App.icns" | |
OUTPUT_PNG="AdobeAfterEffectsCC.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# Audition CC | |
APP="/Applications/Adobe Audition CC 2014/Adobe Audition CC 2014.app" | |
APP_ICON="appIcon.icns" | |
OUTPUT_PNG="AdobeAuditionCC.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# Bridge CC | |
APP="/Applications/Adobe Bridge CC/Adobe Bridge CC.app" | |
APP_ICON="bridge.icns" | |
OUTPUT_PNG="AdobeBridgeCC.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# Dreamweaver CC | |
APP="/Applications/Adobe Dreamweaver CC 2014.1/Adobe Dreamweaver CC 2014.1.app" | |
APP_ICON="Dreamweaver.icns" | |
OUTPUT_PNG="AdobeDreamweaverCC.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# Edge Animate | |
APP="/Applications/Adobe Edge Animate CC 2014.1/Adobe Edge Animate CC 2014.1.app" | |
APP_ICON="appIcon.icns" | |
OUTPUT_PNG="AdobeEdgeAnimateCC.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# Edge Code | |
APP="/Applications/Adobe Edge Code CC.app" | |
APP_ICON="appshell.icns" | |
OUTPUT_PNG="AdobeEdgeCodeCC.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# Edge Reflow | |
APP="/Applications/Adobe Edge Reflow CC.app" | |
APP_ICON="reflow_appicon_hidpi.icns" | |
OUTPUT_PNG="AdobeEdgeReflowCC.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# Extendscript Toolkit CC | |
APP="/Applications/Adobe ExtendScript Toolkit CC/ExtendScript Toolkit.app" | |
APP_ICON="ExtendScriptToolkit.icns" | |
OUTPUT_PNG="AdobeExtendscriptToolkitCC.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# Extension Manager CC | |
APP="/Applications/Adobe Extension Manager CC/Adobe Extension Manager CC.app" | |
APP_ICON="ExtensionManager.icns" | |
OUTPUT_PNG="AdobeExtensionManagerCC.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# Fireworks CS6 | |
APP="/Applications/Adobe Fireworks CS6/Adobe Fireworks CS6.app" | |
APP_ICON="fireworks.icns" | |
OUTPUT_PNG="AdobeFireworksCS6.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# Flash Builder 4.7 Premium | |
APP="/Applications/Adobe Flash Builder 4.7/Adobe Flash Builder 4.7.app" | |
APP_ICON="fb_app.icns" | |
OUTPUT_PNG="AdobeFlashBuilderPremium.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# Flash CC | |
APP="/Applications/Adobe Flash CC 2014/Adobe Flash CC 2014.app" | |
APP_ICON="appIcon.icns" | |
OUTPUT_PNG="AdobeFlashCC.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# Illustrator CC | |
APP="/Applications/Adobe Illustrator CC 2014/Adobe Illustrator.app" | |
APP_ICON="ai_cc_appicon_hidpi.icns" | |
OUTPUT_PNG="AdobeIllustratorCC.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# InDesign CC | |
APP="/Applications/Adobe InDesign CC 2014/Adobe InDesign CC 2014.app" | |
APP_ICON="[email protected]" | |
OUTPUT_PNG="AdobeInDesignCC.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# Media Encoder CC | |
APP="/Applications/Adobe Media Encoder CC 2014/Adobe Media Encoder CC 2014.app" | |
APP_ICON="ame_appicon.icns" | |
OUTPUT_PNG="AdobeMediaEncoderCC.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# Muse CC | |
APP="/Applications/Adobe Muse CC 2014/Adobe Muse CC 2014.app" | |
APP_ICON="mu_appIcon.icns" | |
OUTPUT_PNG="AdobeMediaEncoderCC.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# Lightroom | |
APP="/Applications/Adobe Photoshop Lightroom 5.app" | |
APP_ICON="App.icns" | |
OUTPUT_PNG="AdobeLightroom.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# Prelude CC | |
APP="/Applications/Adobe Prelude CC 2014/Adobe Prelude CC 2014.app" | |
APP_ICON="[email protected]" | |
OUTPUT_PNG="AdobePreludeCC.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# Premiere Pro CC | |
APP="/Applications/Adobe Premiere Pro CC 2014/Adobe Premiere Pro CC 2014.app" | |
APP_ICON="pr_app_icons.icns" | |
OUTPUT_PNG="AdobePremiereProCC.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# Scout CC | |
APP="/Applications/Adobe Scout CC.app" | |
APP_ICON="appIcon.icns" | |
OUTPUT_PNG="AdobeScoutCC.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
# SpeedGrade CC | |
APP="/Applications/Adobe SpeedGrade CC 2014/Adobe SpeedGrade CC 2014.app" | |
APP_ICON="SpeedGrade.icns" | |
OUTPUT_PNG="AdobeSpeedGradeCC.png" | |
if [[ -d "$APP" ]]; then | |
/usr/bin/sips -s format png "$APP/Contents/Resources/$APP_ICON" --out "$1/$OUTPUT_PNG" | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment