Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Obviously, with Mountain Lion, users may define VIPs in Apple’s Mail.app. I would like to see which contacts are marked as VIPs outside of Mail – for example in Contacts.app (smart list??), or in Terminal. Is there a way to do so?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Seems to be listed here.

~/Library/Mail/V2/MailData/VIPSenders.plist

defaults read ~/Library/Mail/V2/MailData/VIPSenders.plist Senders

I only know how to narrow it down to the nested names in applescript. But you can use the applescript from terminal.

/usr/bin/osascript -e "tell app \"System Events\" to (get value of property list item \"Name\" of property list items of property list item \"Senders\" of property list file  \"~/Library/Mail/V2/MailData/VIPSenders.plist\") "
share|improve this answer
    
Very nice! This will do. If anyone knows how to directly read the nested values from the plist file: you are welcome! –  myhd Sep 25 '12 at 11:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.