Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Find if an application is from the Mac App Store Apps
I was rooting around my system today, and wondering if there's any way to find out if an application is from the Mac App Store. The Info window - when you select an item and press Command-I - doesn't say anything, but the System Information application does. There is an "App Store" column which says yes or no for each application.

I figured there had to be another way, and eventually found that the mdls command gives some of this information. Running mdls <app name> returns a lot of information, but near the top of the list are a few lines like this:
$ mdls /Applications/Smarts.app 
kMDItemAlternateNames             = (
    "Smarts.app"
)
kMDItemAppStoreAdamID             = "438671026"
kMDItemAppStoreCategory           = "Music"
kMDItemAppStoreCategoryType       = "public.app-category.music"
kMDItemAppStoreHasReceipt         = 1
kMDItemAppStoreInstallerVersionID = "8330689"
kMDItemAppStoreIsAppleSigned      = 1
kMDItemAppStorePurchaseDate       = 2012-06-13 07:14:43 +0000
kMDItemAppStoreReceiptType        = "ProductionReceipt"

The kMDItemAppStoreHasReceipt is what says whether or not it is a Mac App Store application, but you can see some other Mac App Store information there, such as the category (non-MAS apps have this too, interestingly), the purchase date, the application's ID, etc.

My interest in this is purely academic, but it could be useful to find all Mac App Store applications on a given Mac; you could use the kMDItemAppStoreHasReceipt key in a search, for example. If you run this in Terminal, you'll get a list of all your Mac App Store applications:

mdfind "kMDItemAppStoreHasReceipt=1"

Note that if you have any volumes excluded from Spotlight searches, their Mac App Store apps won't be listed in the results. (H/t to Thomas for that command.)

If anyone has any other ways of finding this information, feel free to post them in the comments.
    •    
  • Currently 4.50 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (6 votes cast)
 
[3,619 views]  

Find if an application is from the Mac App Store | 9 comments | Create New Account
Click here to return to the 'Find if an application is from the Mac App Store' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Find if an application is from the Mac App Store
Authored by: DougAdams on Jul 31, '12 08:22:51AM

Took a quick survey of several apps. If you look in an app's bundle you will see a _CodeSignature folder and _MASReceipt folder. The former indicates that at the very least it was signed by a developer. If the latter exists then it's from the MAS. Not sure if this is 100% consistent.

---
dougscripts.com



[ Reply to This | # ]
Find if an application is from the Mac App Store
Authored by: kirkmc on Jul 31, '12 09:01:30AM

It is, but that's a pretty slow way of finding which apps are from the MAS. It's good if you want to check a specific app, but the mdfind command is probably the quickest, unless you have hundreds of apps on your Mac.

---
Mac OS X Hints editor - Macworld senior contributor
http://www.mcelhearn.com



[ Reply to This | # ]
Find if an application is from the Mac App Store
Authored by: sblowes on Jul 31, '12 08:27:10AM

The easiest way I've found is to enter launchpad (four finger pinch) and hold down option. All the apps will start wobbling, but the App Store apps will also have an "x" overlay to delete the app. Very quick, without even having to switch out of the app you're in.

---
To err is human, to moo is bovine



[ Reply to This | # ]
Find if an application is from the Mac App Store
Authored by: ksinger on Jul 31, '12 10:36:16AM

If you open the App Store from the Finder Menu there is a choice at the top for purchased. Just click on that and they are all there, both installed and not installed. Same is true if you access the App Store for iOS.



[ Reply to This | # ]
Find if an application is from the Mac App Store
Authored by: jaydisc on Aug 01, '12 03:34:08AM

Is there a way to then see which Apple ID purchased the app?



[ Reply to This | # ]
Find if an application is from the Mac App Store
Authored by: Hozman on Aug 01, '12 08:26:32AM

Only the apps purchased under that ID will be listed. You can switch between IDs to see which account they were purchased under.



[ Reply to This | # ]
Find if an application is from the Mac App Store
Authored by: jaydisc on Aug 01, '12 03:35:58PM

You misunderstand. I want to determine which Apple ID bought the App that's sitting on a hard drive. I run an office of computers and multiple IDs are flung around for this and that. In iTunes, you can Get Info on a track and see the Apple ID that purchased it. I want the same for an App sitting on a hard drive.



[ Reply to This | # ]
Find if an application is from the Mac App Store
Authored by: magnamous on Apr 13, '13 08:16:31PM

This doesn't seem to be in the metadata for purchased apps, so not by this method, at least.



[ Reply to This | # ]
Find if an application is from the Mac App Store
Authored by: TNA on Aug 01, '12 08:52:57AM

Many thanks for this tip !
For other "beginners" like me, wihout using the terminal, We can create a smart search folder in the finder sidebar with 2 requests : “Type” = application and “rough request” = kMDItemAppStoreHasReceipt=1



[ Reply to This | # ]