Default Category

N

Neto

Is it possible to set Calendar to use an specific category as default,
instead on "none"?
 
N

Narendra

Hi Neto

You can assign categories to messages as they arrive by using Rules.
By default, messages that you receive are automatically categorized by
Sender. When you assign a category to a contact in your address book, all
messages that you receive from that contact are automatically assigned the
same category as the contact.

Use the following steps to assign categories by using a Rule:
1. On the Tools menu, click Rules.
2. In the Rules dialog box, click the e-mail tab that matches the
account for which you are creating the Rule, and then click New.
3. In the Rule Name box, type a descriptive name for this Rule. For
example, "Assign Category for Incoming Mail."
4. In the If dialog box, click the criteria required to activate this
Rule.
5. In Then dialog box, click Set Category in the Action box, and then
click the appropriate category from the adjacent list.
6. Click OK.

Let me know if it works for you

Naren
 
P

Paul Berkowitz

But he wasn't asking about messages, Narendra. His question was clearly
asking about Calendar events.

No, it is not possible to set a default category for new calendar events.

What you could do , if you forget or want to avoid setting the category, is
to run this script every once in a while, but only if you don't want _any_
events to have "None" category:

tell application "Microsoft Entourage"
set category of every event whose category is {} to {category
"Whatever"}
end tell



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

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

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

Narendra

Re: Default CategoryI am sorry :(

But he wasn't asking about messages, Narendra. His question was clearly asking about Calendar events.

No, it is not possible to set a default category for new calendar events.

What you could do , if you forget or want to avoid setting the category, is to run this script every once in a while, but only if you don't want _any_ events to have "None" category:

tell application "Microsoft Entourage"
set category of every event whose category is {} to {category "Whatever"}
end tell



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

Please "Reply To Newsgroup" to reply to this message. Emails will be ignored.

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

Paul Berkowitz

No, it is not possible to set a default category for new calendar events.

What you could do , if you forget or want to avoid setting the category, is to
run this script every once in a while, but only if you don't want _any_ events
to have "None" category:

tell application "Microsoft Entourage"
set category of every event whose category is {} to {category "Whatever"}
end tell

Oops. My error. There's a special thing about 'category' property of objects
in AppleScript, because it's also a class and AppleScript gets confused. You
have to do it this way, since the above script will error:

tell application "Microsoft Entourage"
set category of every event where its category is {} to {category
"Whatever"}
end tell


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

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

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

Neto

Narenda, thanks anyway ;-)

Paul,

That¹s a good idea Paul...

Is it possible to run that script everytime I open and close Entourage?
 
M

Mickey Stevens

Yes. Go to Tools > Schedules, and create a new schedule that looks like
this
WHEN At Startup
WHEN On Quit
ACTION Run AppleScript

Select the AppleScript that you saved, and then check the "Enabled" box and
click OK. It should then run each time your open and close Entourage
automatically.
 
N

Neto

Ok...maybe this is a little off topic, since this is an Entourage group, not
an AppleScriot newsgroup...but it's just a detail missing to make things
work perfectly..

Paul, I¹m using the script

tell application "Microsoft Entourage"
set category of every event where its category is {} to {category
"Whatever"}
end tell

It works fine if there is any event whose category is different from
"Whatever". But if I schedule the script to "auto-run" on opening and
closing Entourage, and all events are already set to the "Whatever"
category, I'll get the error message: "Microsoft Entourage got an error.
Can't set category of every event whose category of it = {} to {category
"Whatever"}

So my last question on this subject is:

Is there a way to avoid this error message? My AppleScript skills are not
enough for that...
 
P

Paul Berkowitz

Ok...maybe this is a little off topic, since this is an Entourage group, not
an AppleScriot newsgroup...but it's just a detail missing to make things
work perfectly..

Paul, I¹m using the script

tell application "Microsoft Entourage"
set category of every event where its category is {} to {category
"Whatever"}
end tell

It works fine if there is any event whose category is different from
"Whatever". But if I schedule the script to "auto-run" on opening and
closing Entourage, and all events are already set to the "Whatever"
category, I'll get the error message: "Microsoft Entourage got an error.
Can't set category of every event whose category of it = {} to {category
"Whatever"}

So my last question on this subject is:

Is there a way to avoid this error message? My AppleScript skills are not
enough for that...


tell application "Microsoft Entourage"
try
set category of every event where its category is {} to {category
"Whatever"}
end try
end tell

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

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

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

mjfzz

The lack of a Default Category is a serious oversight when creating
a new calendar event. How many zillions of cal events are created every
day, week, month. How many wasted keystrokes to always have to set the
Catetory to "Work".

What is frustrating is thast when I set the category for an event, it
has a button that says, "Set Default". However, that button seems to be
ignored. Does anyone know when this feature/bug will be addressed by
Microsoft?

Platform: Mac OS X
Product: Office 2004 for Mac
 
P

Paul Berkowitz

I think you're misreading or misremembering here - perhaps a case of wishful
thinking?

If you use the big Assign Categories window - rather than just selecting a
category in the drop-down button that appears if you click and hold the
Categories button or click the tiny arrow slit next to it - then you'll see
a button that says "Set Primary", not "Set Default". This is the case for
any item hat has categories. What that button does is allow you to set the
Primary category - the one to display its color - for an item that has more
than one category.

If there were ever to be a default category for an event, or a task, or a
contact, etc. it would have to be in Preferences for those types, not in the
Assign Categories window.

As has been mentioned, you could have a script (with a keyboard shortcut) to
open a new event with a preset category, but then you'd need to do about 3
times as many clicks to change the start time from whatever the dummy event
had preset.

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

Please "Reply To Newsgroup" to reply to this message. Emails will be
ignored.

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

Mickey Stevens

The lack of a Default Category is a serious oversight when creating
a new calendar event. How many zillions of cal events are created every
day, week, month. How many wasted keystrokes to always have to set the
Catetory to "Work".

What is frustrating is thast when I set the category for an event, it
has a button that says, "Set Default". However, that button seems to be
ignored. Does anyone know when this feature/bug will be addressed by
Microsoft?

I don't see that. There is a button called "Set Primary", which sets the
primary category for items with more than one category.
 
Top