diff --git a/docs/misc/apple-intelligence.md b/docs/misc/apple-intelligence.md index db48e782..c1cb27c0 100644 --- a/docs/misc/apple-intelligence.md +++ b/docs/misc/apple-intelligence.md @@ -53,3 +53,36 @@ defaults delete com.apple.CloudSubscriptionFeatures.optIn "545129924" 1. Access Apple Intelligence settings from macOS UI 2. Toggle "Apple Intelligence" value + +## END USER NOTE: +After a few other post release updates, it appears the "patchID / code" for Apple Intelligence (referenced above) +seems to CHANGE after updates. I am using the following technique to "extract" this code using simple bash, and THEN apply +the aforementioned update: +(NOTE TO AUTHOR: apologies in advance, I did not know where this information wouold best be structured on your +original page format. Please feel free to adjust or advise me where this should be structured) + + +``` +patchID="" +tmpres=`defaults read com.apple.CloudSubscriptionFeatures.optIn` +IFS=$' \n\t' +myarr=($tmpres) +for item in "${myarr[@]}"; do + # Only care about lines that ONLY contain digits + if [[ "$item" =~ [^0-9] ]]; then + continue + fi + # If $patchID is empty, we fill it in with the value that is "only digits" + # We only care about first entry, so we break loop when done + if [[ -z $patchID ]]; then + patchID=$item + break + fi +done + +echo "Patch ID is: $patchID" +defaults write com.apple.CloudSubscriptionFeatures.optIn ${patchID} -bool false +defaults write com.apple.CloudSubscriptionFeatures.optIn auto_opt_in -bool false +defaults read com.apple.CloudSubscriptionFeatures.optIn +``` +