On 5/10/05 4:46 PM, "Michael Tsai" <[EMAIL PROTECTED]> wrote:

> Is it possible to delete Entourage categories via AppleScript? This
> script:
> 
> tell application "Microsoft Entourage"
>      delete category id 1
> end tell
> 
> stops with an error: "category id 1 doesn't understand the delete
> message."

category id 1 is Junk category, and you can't delete that one (it's used by
the Junk Filter for setting Junk status and must be id 1, so can't be
removed). You can delete any other one, but don't try by id unless you know
that id actually exists. If you ever deleted (in the UI) the category that
happened to be category id 2, that means there is no longer any such
category.

Start out by deleting by index or name:

    delete category 2

or 

    delete category "Personal"

-- 
Paul Berkowitz
MVP MacOffice
Entourage FAQ Page: <http://www.entourage.mvps.org/faq/index.html>
AppleScripts for Entourage: <http://macscripter.net/scriptbuilders/>

PLEASE always state which version of Microsoft Office you are using -
**2004**, X  or 2001. It's often impossible to answer your questions
otherwise.


-- 
To unsubscribe:                     
<mailto:[EMAIL PROTECTED]>
archives:       
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:       
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to