Posted on 01-06-2020 12:33 PM
Hello,
Not sure if anybody saw this one yet: link text
I have decided to put a script which will ask you to point the folder (where the quarantined packages are located), then loop through the files with the suggested fix command from above article to the files, which will require it.
I have not had a chance to test it yet as we are still blocking Catalina and do not have these Adobe CC packages to run the actual test, but if you do - be my guest. Let me know if there are any issues with the script and I can fix it.
The script:
#!/bin/bash
FOLDER_TO_PROCESS=$(/usr/bin/osascript << EOD
tell application "System Events"
activate
try
set FolderName to POSIX path of (choose folder with prompt "Please choose a folder:")
on error
set FolderName to "!ERROR!"
end try
end tell
EOD)
if [[ "$FOLDER_TO_PROCESS" == "!ERROR!" ]]; then
echo "No folder chosen"
exit 0
else
echo "$FOLDER_TO_PROCESS folder selected"
## Loop to go through all files and apply Adobe CC package fix if needed
FILES=$FOLDER_TO_PROCESS/*
for i in $FILES
do
echo "Processing $i file..."
quarantinecheck=`xattr $i`
if [[ $quarantinecheck == *"com.apple.quarantine"* ]];
then
echo "$i files is quarantine"
## Running a fix for Adobe CC to unquarantine the file
xattr -d com.apple.quarantine $i
else
echo "$i files is not quarantine"
echo "checking next file"
fi;
done
fi
echo "Finished!"
#Display completion message to the user
runCommand=$( /usr/bin/sw_vers -productVersion)
## Format information #####
displayInfo="Finished!"
runCommand="button returned of (display dialog "$displayInfo" with title "Adobe CC Packages Fix" with icon file posix file "/System/Library/CoreServices/Finder.app/Contents/Resources/Finder.icns" buttons {"OK"} default button {"OK"})"
clickedButton=$( /usr/bin/osascript -e "$runCommand" )