Re: Search for emails in Mail’s previous recipients list from MacOSX app
Re: Search for emails in Mail’s previous recipients list from MacOSX app
- Subject: Re: Search for emails in Mail’s previous recipients list from MacOSX app
- From: Markus Spoettl <email@hidden>
- Date: Thu, 15 Jan 2015 22:23:48 +0100
On 15/01/15 22:04, Steffen Andersen wrote:
I am currently working on a MacOSX app, where the user will be able to send
mails generated based on different user input. To help the user, when
writing an email address, it would be great, if it was possible to search in
the previous recipients list/db Mail uses. As not all emails will be in the
users Contacts. From a bit of search I’ve located the previous recipients
list/db
~/Library/Containers/com.apple.corerecents.recentsd/Data/Library/Recents/Recents
and it seems to be a sqlite. Is there any issues accesses it from with in an
app, if I want to launch the app to AppStore?
You can't access such data (data in containers of other apps, or data in the
general Library folder) in sandboxed apps. Apps on the Mac App Store need to be
sandboxed.
There are only a handful of paths you can access with the appropriate
entitlements in place (pictures, downloads, music, movies). Other paths require
explicit user consent and the only way to get that is having the user point to
the path in an open/save sheet/panel.
Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden