Happy User Here,
I can’t figure out how to have Hazel go through a folder of apps, some with multiple versions, and delete (only) the older versions. Any ideas?
Thanks.
Moderator: Mr_Noodle
sjk wrote:It depends on how you'll identify which versions are considered older than others. For example, do the filenames provide enough version information or would it have to be determined some other way?
And would you only want Hazel to do this when explicitly running rules or would it be ongoing (permanently enabled/active)? If the latter, why/how would older versions still be saved there in the future if only to be deleted?
Do you have so many older app versions to delete that it's impractical to do once manually then only save current versions there in the future?
happyuser wrote:but on a partition on my external drive I keep backups of iOS apps I’ve purchased. These have the same app name, but different version number, so yes, the filename reveals the difference.
% ls -1 Angry*
Angry Birds 1.0.2.ipa
Angry Birds 1.1.3 1.ipa
Angry Birds 1.1.3.ipa
Angry Birds 1.2.0 1.ipa
Angry Birds 1.2.0.ipa
Angry Birds 1.3.0 1.ipa
Angry Birds 1.3.0 2.ipa
Angry Birds 1.3.0.ipa
Angry Birds 1.4.0 1.ipa
Angry Birds 1.4.0.ipa
Angry Birds 1.5.1 1.ipa
Angry Birds 1.5.1.ipa
Angry Birds 1.5.2.ipa
Angry Birds 1.6.2 1.ipa
Angry Birds 1.6.2.ipa
Angry Birds 3.1.2 1.ipa
Angry Birds 3.1.2.ipa
Angry Birds 3.3.0.ipa
% egrep -A1 'bundleVersion|itemName' *.plist
iTunesMetadata copy.plist: <key>bundleVersion</key>
iTunesMetadata copy.plist- <string>1.1.3</string>
--
iTunesMetadata copy.plist: <key>itemName</key>
iTunesMetadata copy.plist- <string>Angry Birds Star Wars HD Free</string>
--
iTunesMetadata.plist: <key>bundleVersion</key>
iTunesMetadata.plist- <string>1.1.3</string>
--
iTunesMetadata.plist: <key>itemName</key>
iTunesMetadata.plist- <string>Angry Birds Star Wars Free</string>