[…] the general preferences. And support is added for NetNewsWire. If you haven’t checked out the iCal integration, you should. I’m loving it. Visit the download page or use the “Check for […]
MoodBlast and iCal
Note: This post is over 6 months old. You may want to check later in this blog to see if there is new information.
The following links are auto-generated but may help you locate newer content:
A quick script that can be triggered from iCal to send a blast with MoodBlast…
Copy the code below into script editor, or just click here to open it in Script Editor directly. Save it as a compiled script file (.scpt) and put it in a scripts directory. When you set up an alarm in iCal, choose “Run Script” and select this script. You set the text for the blast in the description field. You can use all of the fun stuff, including specifying which services to update using the “^” overrides. For example, just start the string with ^sa to send only to Skype and Adium, regardless of your current checkbox selections in MoodBlast. You can set a status (@keyword) and update your moods with what you’re doing (or at least supposed to be doing) automatically. Fun stuff.
icalblast
on searchEvents()set currentWinner to {null, 86400}tell application "iCal"set theCalendarList to (every calendar)repeat with theCalendar in theCalendarListset eventList to get ((every event of theCalendar) whose (filepath of open file alarm of it) is not missing value)repeat with anEvent in eventListset alarmPath to ((filepath of open file alarm of anEvent) as string)if alarmPath contains (POSIX path of (path to me) as string) thenset diffdate to ((current date) - (start date of anEvent))if diffdate is less than 0 thenset diffdate to -1 * diffdateend ifif diffdate < item 2 of currentWinner then set currentWinner to {anEvent, diffdate}end ifend repeatend repeatif item 1 of currentWinner is not null then return description of item 1 of currentWinner as stringreturn ""end tellend searchEventsset theBlastString to searchEvents()if theBlastString is not "" then tell application "MoodBlast" to blast theBlastString- Download this code: icalblast.txt
-
10.27.07 / 9pm
Have your say
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

1 Comment
Jump to comment form | comments rss [?] | trackback uri [?]