Skip to content

Instantly share code, notes, and snippets.

@zerodi
Created November 23, 2016 09:41
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 zerodi/3e2aed1026bdaf93c60527ad795c35c4 to your computer and use it in GitHub Desktop.
Save zerodi/3e2aed1026bdaf93c60527ad795c35c4 to your computer and use it in GitHub Desktop.
2 small bash scripts to backup and restore amtlib.framework
adobe-backup() {
find /Applications/Adobe\ */**/amtlib.framework -type d -maxdepth 0 | while read FOLDER ;
do
newname="$(echo ${FOLDER} | awk -F '/' '{print $3}')";
cp -r ${FOLDER} ~/adobe.backup/${newname};
done
}
adobe-restore() {
for FOLDER in ~/adobe.backup/*
do
apppath="$(echo $(basename ${FOLDER}))";
appname="$(echo ${apppath} | awk -F' ' '{print $1" "$2".app"}')";
cp -r ${FOLDER} /Applications/${apppath}/${appname}/Contents/Frameworks/amtlib.framework;
done
}
@HeIp-zz
Copy link

HeIp-zz commented Jul 17, 2017

This only copies and save the original amtlib.framework file ? - scriptkiddie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment