Add birthdays from all entourage contacts to entourage calendar

  • Thread starter Michael Köhler
  • Start date
M

Michael Köhler

Hi,

I´m new to entourage and I want to add the birthdays which exist in my
contacts as events into the calendar. I can do it for each contact by
clicking the symbol next to the birthday but it´s very exhausting to do this
for more than 100 contacts. Is there an applescript or automator action to
do this a lot easier?

Thanks,
Michael
 
M

Michael Köhler

Hi again,
I´m new to entourage and I want to add the birthdays which exist in my
contacts as events into the calendar. I can do it for each contact by
clicking the symbol next to the birthday but it´s very exhausting to do this
for more than 100 contacts. Is there an applescript or automator action to
do this a lot easier?

I´ve found a applescript written by Brian Wainright, because the script
cause and error "Expect End of File but unknown token was found" in the
line: " set theContacts to every contact whose birthday ‚ "" "

And here the script:

-- Add All Birthdays to Calendar v1.0 (2008-03-20)
-- an applescript by Barry Wainwright <mailto:[email protected]>
-- Adds a yearly recurring event for all contacts with a birthday defined
-- This script released under a Creative Commons Attribution, NonCommercial,
-- ShareAlike 2.0 England & Wales License.
-- see <http://creativecommons.org/licenses/by-nc-sa/2.0/uk/>
-- for full details

tell application "Microsoft Entourage"
set theContacts to every contact whose birthday ‚ ""
repeat with acontact in theContacts
set oldDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to {" "}
tell acontact
set theName to {first name, last name}
set theDate to birthday
tell me to set theDate to date theDate
make new event with properties {subject:"Birthday -
" & theName, ¬
start time:theDate, end time:theDate, recurring:true, ¬
recurrence:"FREQ=YEARLY;INTERVAL=1;BYMONTHDAY=19;BYMONTH=3;WKST=SU", ¬
all day event:true}
end tell
set AppleScript's text item delimiters to oldDelims
end repeat
end tell
 
M

Michael Köhler

Hello,
I´ve found a applescript written by Brian Wainright, because the script
cause and error "Expect End of File but unknown token was found" in the
line: " set theContacts to every contact whose birthday ‚ "" "

With a help from a friend, i´ve found the error. Here is the working script:



-- Add All Birthdays to Calendar v1.0 (2008-03-20)
-- an applescript by Barry Wainwright <mailto:[email protected]>
-- Adds a yearly recurring event for all contacts with a birthday defined
-- This script released under a Creative Commons Attribution, NonCommercial,
-- ShareAlike 2.0 England & Wales License.
-- see <http://creativecommons.org/licenses/by-nc-sa/2.0/uk/>
-- for full details

tell application "Microsoft Entourage"
set theContacts to every contact whose birthday is not equal to ""
repeat with acontact in theContacts
set oldDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to {" "}
tell acontact
set theName to {last name, first name}
set theDate to birthday
tell me to set theDate to date theDate
make new event with properties {subject:"Birthday:
" & theName, start time:theDate, end time:theDate, recurring:true,
recurrence:"FREQ=YEARLY;INTERVAL=1;WKST=SU", all day event:true, remind
time:7200}
end tell
set AppleScript's text item delimiters to oldDelims
end repeat
end tell



I´ve added a reminder five days before and removed the startdate for the
recurrence. But now, I´ve some other problems/questions. I want this Script
working like a manuel click at the symbol right next to the birthday date in
a contact and so some informations are lost.

- How can i add a new item to the links of a contact with the event id of
the new event?
- How can I add a category to this new event?
- I want to change the default subject to "Geburtstag: lastname, firstname)
but if I do this the title was changed to this but if I open the event the
subject is only "lastname, firstname).

I hope somebody will help me. I´m new to mac, entourage and applescript -
but i want to learn :).

Thanks,
Michael
 
M

Michael Köhler

Hello,
But now, I´ve some other problems/questions. I want this Script
working like a manuel click at the symbol right next to the birthday date in
a contact and so some informations are lost.

- How can i add a new item to the links of a contact with the event id of
the new event?
- How can I add a category to this new event?
- I want to change the default subject to "Geburtstag: lastname, firstname)
but if I do this the title was changed to this but if I open the event the
subject is only "lastname, firstname).

I hope somebody will help me. I´m new to mac, entourage and applescript -
but i want to learn :).

Nobody has an idea? Are my messages are readable? Are my messages to be
received?

Thanks,
Michael
 
D

Diane Ross

Michael Köhler said:
Nobody has an idea? Are my messages are readable? Are my messages to be
received?

Someone posted a script Wednesday, July 9, 2008. Did you not see the reply?
If you have questions about using the script, please ask.
 
M

Michael Köhler

Hello Diane,
Someone posted a script Wednesday, July 9, 2008. Did you not see the reply?
If you have questions about using the script, please ask.

Oh yes, I read this message because the sender was me :). And yes, I´ve a
few questions to improve this script:

- How can i add a new item to the links of a contact with the event id of
the new event?
- How can I add a category to this new event?
- I want to change the default subject to "Geburtstag: lastname, firstname)
but if I do this the title was changed to this but if I open the event the
subject is only "lastname, firstname).

Do you know, how could I do this in applescript?

Greetings, Michael
 
D

Diane Ross

Michael Köhler said:
Do you know, how could I do this in applescript?

Unless a scripter chimes in, this is beyond my abilities with AppleScript.
There are several on this newsgroup...it's just them seeing the message for
help. Since the subject doesn't mention AppleScript it could get overlooked.

You might get better results on the YouTalk list. It's specifically for help
with Entourage and there are scripters on the list.

YouTalk Info Page <http://nine.pairlist.net/mailman/listinfo/youtalk>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top