Skip to content

Instantly share code, notes, and snippets.

@thenoseman
Last active August 29, 2015 14:06
Show Gist options
  • Save thenoseman/af1313799b105b2b947f to your computer and use it in GitHub Desktop.
Save thenoseman/af1313799b105b2b947f to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# Based on: http://imaginationunbound.blogspot.com/2007/12/adobe-photoshop-cs3-on-mac-os-x-case.html
# Instructions for use
# 1. Copy Photoshop CS5 from a case-insensitive install by copying these folders:
# a) "old_disk_image/Library/Application Support/Adobe" to "/Library/Application Support/Adobe
# b) "old_disk_image/Library/Application Support/FLEXnet Publisher" to "/Library/Application Support/FLEXnet Publisher
# c) "old_disk_image/Library/ScriptingAdditions/Adobe Unit Types.osax" to "/Library/ScriptingAdditions/Adobe Unit Types.osax
# d) "old_disk_image/Applications/Adobe Photoshop CS5" to "/Applications/Adobe Photoshop CS5"
# 2. Run the script below to rename all the folders Adobe's programmers where too lazy to name correctly.
# 3. You can now start Photoshop CS5, but you'll not have any plugins including PNG support and Safe for Web (except Camera Raw)
# 4. When you have started Photoshop CS5 goto menu: Photoshop -> Preferences -> Plug-ins
# a) Enable the Additional Plug-Ins Folder
# b) Select the normal plugin path: /Applications/Adobe\ Photoshop\ CS5/Plug-ins
# c) Save and restart photoshop.
# Voila!
cd /Applications/Adobe\ Photoshop\ CS5/Adobe\ Photoshop\ CS5.app/
# Rename all folders called a to A
for i in `find Contents -type d -name "a" | awk '{ print length($0),$0 | "sort -rn"}' | awk '{$1=""; print substr($0,2) }'`;
do
n=`echo $i | sed 's/\/a$/\/A/g'`
mv $i $n;
done
# Rename all folders called "resources" to "Resources"
for i in `find Contents -type d -name "resources" | awk '{ print length($0),$0 | "sort -rn"}' | awk '{$1=""; print substr($0,2) }' | sed 's/ /-_-/g'`;
do
i=`echo "$i" | sed 's/-_-/\\ /g'`;
n=`echo "$i" | sed 's/\/resources$/\/Resources/g'`;
mv "$i" "$n";
done
# Rename remaining frameworks
mv Contents/Frameworks/adobelinguistic.framework Contents/Frameworks/AdobeLinguistic.framework
mv Contents/Frameworks/wrservices.framework Contents/Frameworks/WRServices.framework
mv Contents/Frameworks/adobejp2k.framework Contents/Frameworks/AdobeJP2K.framework
mv Contents/Frameworks/adobepdfsettings.framework/Versions/A/AdobePDFSettings Contents/Frameworks/adobepdfsettings.framework/Versions/A/adobepdfsettings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment