Forcing Mail to reload MessageRules.plist

  • Does anyone know how to force Mail to re-read its preferences
    programmatically?  Uh, anyone besides the Apple Mail developers?  I'm
    trying to get Mail to refresh from the MessageRules.plist.

    Thanks,
    Russ
  • On Oct 18, 2007, at 4:33 PM, <russ...> wrote:

    > Does anyone know how to force Mail to re-read its preferences
    > programmatically?  Uh, anyone besides the Apple Mail developers?  I'm
    > trying to get Mail to refresh from the MessageRules.plist.

    If you're changing the rules, then have you considered using Sync
    Services to make the change? That may be the only option, short of
    reloading the application.

    Nick Zitzmann
    <http://www.chronosnet.com/>
  • On Oct 18, 2007, at 3:54 PM, Nick Zitzmann wrote:

    > If you're changing the rules, then have you considered using Sync
    > Services to make the change? That may be the only option, short of
    > reloading the application.

    Also, as I'm sure the mods love to point out, this really isn't a
    question about Cocoa. If there's functionality you want, you'd best be
    served by contacting DTS or filing a bug report.

    But Nick's suggestion is quite a clever one...

    -> jp
  • What are you trying to do? If you're fiddling with rules, have a look
    at Mail's AppleScript support. It allows you to create and modify
    rules on the fly, and you can easily run scripts from cocoa code. I
    was just doing this exact thing today actually. If you'd like some
    examples or more help, feel free to contact me off-list.

    Sent from my iPhone

    On Oct 18, 2007, at 6:33 PM, <russ...> wrote:

    > Does anyone know how to force Mail to re-read its preferences
    > programmatically?  Uh, anyone besides the Apple Mail developers?  I'm
    > trying to get Mail to refresh from the MessageRules.plist.
    >
    > Thanks,
    > Russ
  • Yeah, it's a bit off-topic, but I was hoping that it would be on-
    topic by virtue of a Cocoa trick I could use . . . and apparently
    there is, if I'm willing to brave exploration into the
    SyncServices.framework.  Thanks Nick.  Maybe AppleScript would be
    more straightforward in this instance though . . . .

    Best,
    Russ

    On Oct 18, 2007, at 3:59 PM, Jim Puls wrote:

    > On Oct 18, 2007, at 3:54 PM, Nick Zitzmann wrote:
    >
    >> If you're changing the rules, then have you considered using Sync
    >> Services to make the change? That may be the only option, short of
    >> reloading the application.
    >
    > Also, as I'm sure the mods love to point out, this really isn't a
    > question about Cocoa. If there's functionality you want, you'd best
    > be served by contacting DTS or filing a bug report.
    >
    > But Nick's suggestion is quite a clever one...
    >
    > -> jp
previous month october 2007 next month
MTWTFSS
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31        
Go to today