Open obrientg opened 23 hours ago
There seems something wrong happened when it tries to get apps information.
Could you please try following commands and give me outputs?
mdfind 'kMDItemAppStoreHasReceipt=1'
for app in $(mdfind 'kMDItemAppStoreHasReceipt=1');do echo $app;mdls -attr kMDItemAppStoreAdamID -attr kMDItemVersion $app;done
Sure
mdfind 'kMDItemAppStoreHasReceipt=1'
/Applications/Mattermost.app /Applications/Keynote.app /Applications/Numbers.app /Applications/iMovie.app /Applications/GarageBand.app /Applications/Pages.app /Applications/WireGuard.app
but if I run mdfind 'kMDItemAppStoreHasReceipt=1' for app in $(mdfind 'kMDItemAppStoreHasReceipt=1');do echo $app;mdls -attr kMDItemAppStoreAdamID -attr kMDItemVersion $app;done
-bash: syntax error near unexpected token `do'
or run
mdfind 'kMDItemAppStoreHasReceipt=1' for app in $(mdfind 'kMDItemAppStoreHasReceipt=1');
Unknown option -
Usage: mdfind [-live] [-count] [-onlyin directory] [-name fileName | -s smartFolderName | query] list the files matching the query query can be an expression or a sequence of words
-attr
Fetches the value of the specified attribute -count Query only reports matching items count -onlyin Search only within given directory -live Query should stay active -name Search on file name only -reprint Reprint results on live update -s Show contents of smart folder -0 Use NUL (``\0'') as a path separator, for use with xargs -0. example: mdfind image example: mdfind -onlyin ~ image example: mdfind -name stdlib.h example: mdfind "kMDItemAuthor == 'MyFavoriteAuthor'" example: mdfind -live MyFavoriteAuthor
Could you please try (starting from for
)?:
for app in $(mdfind 'kMDItemAppStoreHasReceipt=1');do echo $app;mdls -attr kMDItemAppStoreAdamID -attr kMDItemVersion $app;done
Hello! I am working on getting brew-file running on various macbook pro's I own to make administration easier - and when configuring a new system. The current system I am working on is a MacBookPro11,5 running Monterey (12.7.6), with brew & all packages up to date (ran brew update/upgrade before starting this process).
I have gone through all the documentation posted on https://homebrew-file.readthedocs.io/en/latest/usage.html and the FAQ), but I am getting similar IndexError's when running casklist, or when looking to create the brew-file (which casklist seems to be the first step):
Your assistance and insights would be appreciated - thank you
(edited for formatting)