• 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: Automator-users Digest, Vol 61, Issue 9
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Automator-users Digest, Vol 61, Issue 9


  • Subject: Re: Automator-users Digest, Vol 61, Issue 9
  • From: Christian Boyce <email@hidden>
  • Date: Wed, 23 Feb 2011 14:18:06 -0800

How about an AppleScript?

Start with something like this:

tell application "iCal"
set the_birthdays to every event in calendar "Birthdays"
repeat with a_birthday in the_birthdays
return summary of a_birthday & ": " & start date of a_birthday
end repeat
end tell

(the "return" is in there for you to see how it works. Script Editor will show you something like this:

"Christian Boyce’s Birthday: Tuesday, February 2, 1962 12:00:00 AM"


If you take the "return" out and instead do something like "set {summary, the_date} to summary of a_birthday & ": " & start date of a_birthday" you will have variables that you can work with.

The name would then be something you could pick out (first two words of the summary, minus the last two characters) and the date is right there for you to work with too. 

Obviously you have some work to do in that repeat loop-- but I've gotten you started. In that loop you will talk to Address Book.

There are lots of ways to do this but this will get you started.

c

----------------------------------------------------------------------

Message: 1
Date: Tue, 22 Feb 2011 22:28:27 +0000
From: junaid merchant <email@hidden>
Subject: copying ical events into address book contacts
To: email@hidden
Message-ID: <email@hidden">email@hidden>
Content-Type: text/plain; charset=us-ascii

hi,
my query is with regard to locating birthdays in ical and associating those birthdays with the address book entries.
some what opposite to the birthday script where automator looks up address book.
i would like to look up ical and put those events in address book.
as i had moved my data from an old blackberry, this is what i got - complete un association of one contact card that had the birthday of the person.
it went in a seperate entry into ical as a birthday. not associated with the person in the address book. however the names are identical.

please advise.

regards
Junaid Merchant
email@hidden
00447979791211



------------------------------

_______________________________________________
Automator-users mailing list
email@hidden
http://lists.apple.com/mailman/listinfo/automator-users


End of Automator-users Digest, Vol 61, Issue 9
**********************************************

--
Christian Boyce
Christian Boyce and Associates, Mac, iPhone, and iPad Consultants
310-452-3720

Read the Boyce Blog: http://christianboyce.blogspot.com
Follow us on Twitter! http://twitter.com/christianboyce
Be a fan on Facebook! http://tinyurl.com/cboyce-and-associates-facebook

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Automator-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: copying ical events into address book contacts
  • Previous by thread: copying ical events into address book contacts
  • Index(es):
    • Date
    • Thread