Skip to content

Instantly share code, notes, and snippets.

@startergo
Last active March 9, 2024 16:19
Show Gist options
  • Save startergo/1d4904c59915882396af3679b73cf7d3 to your computer and use it in GitHub Desktop.
Save startergo/1d4904c59915882396af3679b73cf7d3 to your computer and use it in GitHub Desktop.
Find Application ID's for mas-cli (Mac App Store) download

In systems up to 10.11.6 you can save the "Purchased" page as html file to disk:

  • Quit App Store.app
  • Open Terminal.app in /Applications/Utilities
  • Enter:
defaults write com.apple.appstore ShowDebugMenu -bool true

and hit the Return/⏎ key to show the debug menu in App Store.app.

  • Open App Store.app (check that the Debug menu is available!)

If you have some hidden purchases and want them to be listed also, unhide them in your account.

  • Open the Purchased page - log in with your Apple ID if required.
  • Hit cmd+U
  • Quit App Store.app
  • Bring Terminal.app to the front and enter:
cp ~/Library/Containers/com.apple.appstore/Data/Library/Documentation/pageSource.html ~/Desktop/pageSource.html

and hit the Return/⏎ key. The pageSource.html file is now on your desktop and can be opened with a browser

  • Enter:
defaults write com.apple.appstore ShowDebugMenu -bool false 

and hit the Return/⏎ key to remove the debug menu in App Store.app again.

  • Enter exit and hit the Return/⏎ key.
  • Quit Terminal.app
  • Show page source and search for the Application name. Next to it you will find the id like:
data-installation-type="install" data-bundle-version="10.8.5" data-bundle-identifier="com.apple.InstallAssistant.MountainLion" show-hide-url="https://se.itunes.apple.com/WebObjects/MZStoreElements.woa/wa/hideLockers?cc=us&ids=537386512" data-adam-id="537386512" data-external-identifier="58523406" class="installation">

  • In this example the OS X Mountain Lion installer has a mas-cli id=537386512
  • To download your application from the Mac App Store use:
mas install 537386512
  • MAS Id's of some macOS's:

13.0 Ventura (id 1638787999) https://apps.apple.com/app/macos-ventura/id1638787999?mt=12

macappstores://apps.apple.com/app/macos-ventura/id1638787999?mt=12

  • To open Ventura in the Mac App Store use:
mas open 1638787999

12.0 Monterey (id 1576738294) https://apps.apple.com/app/macos-monterey/id1576738294?mt=12

macappstores://apps.apple.com/app/macos-monterey/id1576738294?mt=12

  • To open Monterey in the Mac App Store use:
mas open 1576738294

Macos Server

11.0 Big Sur (id 1526878132) https://apps.apple.com/app/macos-big-sur/id1526878132?mt=12

macappstores://apps.apple.com/app/macos-big-sur/id1526878132?mt=12

  • To open Big Sur in the Mac App Store use:
mas open 1526878132

10.15 Catalina (id 1466841314) https://apps.apple.com/app/macos-catalina/id1466841314?mt=12

macappstores://apps.apple.com/app/macos-catalina/id1466841314?mt=12

  • To open Catalina in the Mac App Store use:
mas open 1466841314

10.14 Mojave (id 1398502828) https://apps.apple.com/app/macos-mojave/id1398502828?mt=12

macappstores://apps.apple.com/app/macos-mojave/id1398502828?mt=12

  • To open Mojave in the Mac App Store use:
mas open 1398502828

10.13 High Sierra (id 1246284741) https://itunes.apple.com/app/macos-high-sierra/id1246284741?mt=12 https://apps.apple.com/app/macos-high-sierra/id1246284741?mt=12

macappstores://apps.apple.com/app/macos-high-sierra/id1246284741?mt=12

  • To open High Sierra in the Mac App Store use:
mas open 1246284741

10.12 Sierra (id 1127487414) https://itunes.apple.com/app/macos-sierra/id1127487414?mt=12 https://apps.apple.com/app/macos-sierra/id1127487414?mt=12

macappstores://apps.apple.com/app/macos-sierra/id1127487414?mt=12

  • To open Sierra in the Mac App Store use:
mas open 1127487414

10.11 El Capitan (id 1147835434) https://itunes.apple.com/app/os-x-el-capitan/id1147835434?mt=12 https://apps.apple.com/app/os-x-el-capitan/id1147835434?mt=12

macappstores://apps.apple.com/app/os-x-el-capitan/id1147835434?mt=12

  • To open El Capitan in the Mac App Store use:
mas open 1147835434

10.10 Yosemite (id 915041082) https://itunes.apple.com/app/os-x-yosemite/id915041082?mt=12 https://apps.apple.com/us/app/os-x-yosemite/id915041082?mt=12

10.9 Mavericks (id 675248567) https://itunes.apple.com/app/os-x-mavericks/id675248567?mt=12 https://apps.apple.com/us/app/os-x-mavericks/id675248567?mt=12

  • Direct downloads:

http://osxapps.itunes.apple.com/apple-assets-us-std-000001/Purple69/v4/a6/b2/66/a6b26643-7d56-d42f-1b0f-e605e094c8fa/encrypted1094904501970168333.pfpkg

http://osxapps.itunes.apple.com/apple-assets-us-std-000001/Purple49/v4/a5/ef/b4/a5efb468-7f48-1395-d8e4-2194ba4d688a/encrypted5063122388219779779.pkg

Mavericks macOS Server 3.2.2

10.8 Mountain Lion (id 537386512) https://itunes.apple.com/app/os-x-mountain-lion/id537386512?mt=12

https://apps.apple.com/app/os-x-mountain-lion/id537386512?mt=12

10.7 Lion (id 444303913) https://itunes.apple.com/app/os-x-lion/id444303913?mt=12

https://apps.apple.com/app/os-x-lion/id444303913?mt=12

10.6 Snow Leopard (Paid Developer account needed)

10.5 Leopard (Paid Developer account needed)

Apple added DMG Installer images for macOS Lion to Ventura excluding Mavericks. Some of the earlier DMG's cannot be installet to the application folder as .app files from newer macOS's.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment