• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mail.app - dictionary implementation questions.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mail.app - dictionary implementation questions.


  • Subject: Re: Mail.app - dictionary implementation questions.
  • From: "John W. Baxter" <email@hidden>
  • Date: Tue, 02 Sep 2003 18:21:09 -0700
  • Envelope-to: email@hidden

On 9/2/2003 1:24, "crooked-eye" <email@hidden> wrote:

> On Monday, September 1, 2003, at 03:19 pm, David Durkee wrote:
>
>> What appears to be the equivalent setting in Mail's .plist file isn't
>> a boolean, which may be a clue. It's called DeletionPolicy, and its
>> values on three accounts on my machine are set to "AfterInterval",
>> "RightAway", and "Never". Sounds like the AppleScript property may
>> have become disconnected from the actual preference and never fixed.
>
> Thanks David, that makes the whole thing a lot clearer. It's not that
> this property doesn't work, but that it has nothing to work on. I
> should have noticed this before.
>
>> You could try manipulating the preference in the .plist file, but this
>> will be more difficult and won't work properly (if at all) if you do
>> it while the application is running.
>
> Do you have any pointers as to how to do this. I did try to do it with
> this script using Grep:
>
> set mailAccts to do shell script "defaults read com.apple.mail
> MailAccounts | grep -n DeletionPolicy" as string -- (line wrap)
>
> But it just created a new DeletionPolicy key at the top level. The
> proper key is embedded and I can't find a way to change an embedded key.
>
>
> On Monday, September 1, 2003, at 09:04 am, John Delacour wrote:
>
>> You can sign up with ADC and report the bug(s) at
>> <http://developer.apple.com/bugreporter/>
>
> I might just do that.
>
>
> Thank you both for taking the time to help.

You've run into the "Bugs" section of the man page for defaults:

BUGS
Defaults can be structured in very complex ways, making it difficult
for the user to enter them with this command.

I don't see anything short of reading the top level tag, modifying the text
as desired, and writing the tag that would allow defaults to be used.

Since this is for a user preference, reading and modifying the file and
writing it back out in the modified form might work. (A backup "might" be a
good idea.)

--John
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Mail.app - dictionary implementation questions.
      • From: crooked-eye <email@hidden>
References: 
 >Re: Mail.app - dictionary implementation questions. (From: crooked-eye <email@hidden>)

  • Prev by Date: Re: dereferencing
  • Next by Date: Re: Services?
  • Previous by thread: Re: Mail.app - dictionary implementation questions.
  • Next by thread: Re: Mail.app - dictionary implementation questions.
  • Index(es):
    • Date
    • Thread