applescript to delete IMAP account

T

tmhoule

I'm working on an applescript to delete a user's IMAP account and
create and exchange account. Other than to disable the send/receive
all schedule, I don't see a way to completely remove an account in
applescript. Does anyone know of one?
thanks
Todd
 
J

Jolly Roger

I'm working on an applescript to delete a user's IMAP account and
create and exchange account. Other than to disable the send/receive
all schedule, I don't see a way to completely remove an account in
applescript. Does anyone know of one?

Have you looked at the Entourage dictionary?? It has a "delete"
command in the Standard suite, and an "IMAP account" class in the
Entourage Mail and News suite.

This works for me:

tell application "Microsoft Entourage"
delete IMAP account "test-imap"
end tell

--
Please let me know if you send email to this address so that I can be
sure your email doesn't get eaten by pobox.com's ultra-aggressive SPAM
filter.

Help improve usenet. Kill-file Google Groups:
http://improve-usenet.org/

JR
 
D

Diane

I'm working on an applescript to delete a user's IMAP account and
create and exchange account. Other than to disable the send/receive
all schedule, I don't see a way to completely remove an account in
applescript. Does anyone know of one?

How about simply selecting the account in the Accounts window and click on
Delete?
 
Top