“Export Mac App Store Purchases to HTML” Macro

“Export Mac App Store Purchases to HTML” Macro

Have you ever wanted to search through your Mac App Store purchases, or browse an alphabetical list?

Well, you can't, because the Mac App Store only shows you Reverse Chronological order.

However, with a bit of finesse, you can get a MultiMarkdown file (and HTML file if you have the multimarkdown tool installed).

  1. In Terminal, with the App Store app NOT running, enter this line:

    defaults write com.apple.appstore ShowDebugMenu -bool true

  2. If you aren't sure if you have multimarkdown installed, do

    which multimarkdown

If it is not installed, the easiest way to get it is brew install multimarkdown (assuming, of course, that you use brew) or you can get one of the installers from http://fletcherpenney.net/multimarkdown/download/.

The macro will select the Debug menu and then the “Save page source to disk”:

That saves the HTML of the entire page to ~/Library/Containers/com.apple.appstore/Data/Library/Documentation/pageSource.html

Then another embedded shell script does through that file, cleans it up, parses just the information we want, sorts it, and creates the MultiMarkdown file.

Once that file is created, then an HTML page is generated and opened in Safari (you can change the browser if you want, just edit one line in the script).

You can see an example of the output here:

http://files.luo.ma/mas-purchases/

(the MMD file is http://files.luo.ma/mas-purchases/index.mmd)

Each app is shown with its official icon, and a link to the Mac App Store page.

Export Mac App Store Purchases to HTML.kmmacros (11 KB)

p.s. if you just want the shell script without the macro, you can find it at https://github.com/tjluoma/mas-purchases.sh.

Hey TJ,

That's pretty spiffy.   :smile:

My version is a just a quick and dirty means of displaying the App-Store page in Safari.

Most of the time I simply want to quickly find something in the list, so this works for me.

-Chris


Export Mac App Store Page to Safari.kmmacros (6.2 KB)