Re: reading preferences from com.apple.mail under 10.8

2012-08-13 Thread Rob McBroom
Sorry to revive an old thread. I've been out on vacation. To clarify, my application is *not* sandboxed. The application who's prefs I'm interested in (Mail) is. The question is: Should that matter? Documentation says "no". Trial and error says "yes". Since no one seems to know, I guess I'll fi

Re: reading preferences from com.apple.mail under 10.8

2012-08-09 Thread Reimers, Gabriel
In Mountain Lion Mail is a sandboxed app. Therefore it now stores it's preferences in ~/Library/Containers/com.apple.mail/Data/Library/Preferences Gabriel On 02.08.12 07:44, "cocoa-dev-requ...@lists.apple.com" wrote: >On Jul 31, 2012, at 8:07 AM, Rob McBroom wrote: > >>Hello. I¹m trying to re

Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Charles Srstka
On Jul 31, 2012, at 10:07 AM, Rob McBroom wrote: > Hello. I’m trying to read Mail’s preferences to find a suitable SMTP server > so users don’t have to re-enter such configuration details. It seems to have > stopped working and I can’t find a [documented] reason. > > I’ve tried > >NSUserD

Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Erik Stainsby
Would it not be more in keeping with sandbox culture to ask the user for permission to read the Mail.app preferences at run time? Thereby obviating the need to maintain a supported under the hood path to the same info. It could be a single request made once during first run. ~ Erik Sent from

Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Jens Alfke
On Aug 2, 2012, at 5:19 AM, Rob McBroom wrote: > And I question whether Scripting Bridge is “more supported” than > `NSUserDefaults`. :-) Those are both supported APIs, but that's irrelevant. The point is that an application's scripting API (as declared in its dictionary) is supported, where

Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Mike Abdullah
On 2 Aug 2012, at 13:47, Rob McBroom wrote: > On Aug 2, 2012, at 3:07 AM, Shane Stanley wrote: > >> On 01/08/2012, at 1:07 AM, Rob McBroom wrote: >> >>> Mail is, but so is TextEdit and I have no problem reading its prefs. >> >> Are you sure you have no problem with TextEdit? It looks like w

Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Kyle Sluder
On Aug 2, 2012, at 9:01 AM, Sean McBride wrote: > On Thu, 2 Aug 2012 08:47:27 -0400, Rob McBroom said: > >> So maybe you can’t read the prefs from a sandboxed application? > > That would seem to fit with the whole idea of a sandbox, wouldn't it? The point is that *Mail* is the sandboxed app he

Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Sean McBride
On Thu, 2 Aug 2012 08:47:27 -0400, Rob McBroom said: >So maybe you can’t read the prefs from a sandboxed application? That would seem to fit with the whole idea of a sandbox, wouldn't it? It would probably work if you give yourself a temporary entitlement to Mail's pref file. I would try that

Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Rob McBroom
On Aug 2, 2012, at 3:07 AM, Shane Stanley wrote: > On 01/08/2012, at 1:07 AM, Rob McBroom wrote: > >> Mail is, but so is TextEdit and I have no problem reading its prefs. > > Are you sure you have no problem with TextEdit? It looks like when Mail moves > its prefs to its container it deletes

Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Rob McBroom
On Aug 2, 2012, at 1:44 AM, Jens Alfke wrote: > On Jul 31, 2012, at 8:07 AM, Rob McBroom wrote: > >> Hello. I’m trying to read Mail’s preferences to find a suitable SMTP server >> so users don’t have to re-enter such configuration details. It seems to have >> stopped working and I can’t find

Re: reading preferences from com.apple.mail under 10.8

2012-08-02 Thread Shane Stanley
On 01/08/2012, at 1:07 AM, Rob McBroom wrote: > Mail is, but so is TextEdit and I have no problem reading its prefs. Are you sure you have no problem with TextEdit? It looks like when Mail moves its prefs to its container it deletes the old file, but TextEdit leaves its old one there. You may

Re: reading preferences from com.apple.mail under 10.8

2012-08-01 Thread Jens Alfke
On Jul 31, 2012, at 8:07 AM, Rob McBroom wrote: > Hello. I’m trying to read Mail’s preferences to find a suitable SMTP server > so users don’t have to re-enter such configuration details. It seems to have > stopped working and I can’t find a [documented] reason. Probably Mail changed where it

reading preferences from com.apple.mail under 10.8

2012-08-01 Thread Rob McBroom
Hello. I’m trying to read Mail’s preferences to find a suitable SMTP server so users don’t have to re-enter such configuration details. It seems to have stopped working and I can’t find a [documented] reason. I’ve tried NSUserDefaults *mailPrefs = [[NSUserDefaults alloc] init]; NSArray