iCal Script Not Working

The Growl forums have moved to Google Groups, this forum is read only.
shadow
Harmless
Posts: 13
Joined: Fri Feb 17, 2006 3:23 am

iCal Script Not Working

Postby shadow » Fri Feb 17, 2006 3:29 am

I don't know why but my iCal script tend to tell me "No iCal Events today, Go Outside and Play" everyday even though my schedule is packed like hell. It is not working since the day I installed the script. Can anyone tell me, how can I make it run everytime I start iCal?

Please help me fix this script as I really love my toDo script and I will be glad if it would tell me my schedule for today.

User avatar
Diggory
Growl Team
Posts: 129
Joined: Sat Dec 04, 2004 12:17 pm
Location: London

Postby Diggory » Fri Feb 17, 2006 12:52 pm

Hmm - would you do me a favour and open the script in Script Editor - then select the 'Event Log' tab at the bottom of the script - then run the script - then paste the contents of the event log here. Thanks - Digs.

shadow
Harmless
Posts: 13
Joined: Fri Feb 17, 2006 3:23 am

Postby shadow » Sat Feb 18, 2006 9:08 am

Here's what the log says yesterday when I have 4 events

tell application "GrowlHelperApp"
register as application "AppleScript iCal today's Event Notifier" all notifications {"Today's Events", "In-Script Notification"} default notifications {"Today's Events", "In-Script Notification"} icon of application "iCal"
end tell
tell current application
current date
date "Friday, February 17, 2006 5:06:04 PM"
end tell
tell application "iCal"
count every calendar
11
count every event of item 1 of every calendar whose start date ? date "Friday, February 17, 2006 12:00:00 AM" and start date ? date "Friday, February 17, 2006 11:59:59 PM" or end date ? date "Friday, February 17, 2006 5:06:04 PM" and start date ? date "Friday, February 17, 2006 12:00:00 AM"
0
count every event of item 2 of every calendar whose start date ? date "Friday, February 17, 2006 12:00:00 AM" and start date ? date "Friday, February 17, 2006 11:59:59 PM" or end date ? date "Friday, February 17, 2006 5:06:04 PM" and start date ? date "Friday, February 17, 2006 12:00:00 AM"
0
count every event of item 3 of every calendar whose start date ? date "Friday, February 17, 2006 12:00:00 AM" and start date ? date "Friday, February 17, 2006 11:59:59 PM" or end date ? date "Friday, February 17, 2006 5:06:04 PM" and start date ? date "Friday, February 17, 2006 12:00:00 AM"
0
count every event of item 4 of every calendar whose start date ? date "Friday, February 17, 2006 12:00:00 AM" and start date ? date "Friday, February 17, 2006 11:59:59 PM" or end date ? date "Friday, February 17, 2006 5:06:04 PM" and start date ? date "Friday, February 17, 2006 12:00:00 AM"
0
count every event of item 5 of every calendar whose start date ? date "Friday, February 17, 2006 12:00:00 AM" and start date ? date "Friday, February 17, 2006 11:59:59 PM" or end date ? date "Friday, February 17, 2006 5:06:04 PM" and start date ? date "Friday, February 17, 2006 12:00:00 AM"
0
count every event of item 6 of every calendar whose start date ? date "Friday, February 17, 2006 12:00:00 AM" and start date ? date "Friday, February 17, 2006 11:59:59 PM" or end date ? date "Friday, February 17, 2006 5:06:04 PM" and start date ? date "Friday, February 17, 2006 12:00:00 AM"
0
count every event of item 7 of every calendar whose start date ? date "Friday, February 17, 2006 12:00:00 AM" and start date ? date "Friday, February 17, 2006 11:59:59 PM" or end date ? date "Friday, February 17, 2006 5:06:04 PM" and start date ? date "Friday, February 17, 2006 12:00:00 AM"
0
count every event of item 8 of every calendar whose start date ? date "Friday, February 17, 2006 12:00:00 AM" and start date ? date "Friday, February 17, 2006 11:59:59 PM" or end date ? date "Friday, February 17, 2006 5:06:04 PM" and start date ? date "Friday, February 17, 2006 12:00:00 AM"
0
count every event of item 9 of every calendar whose start date ? date "Friday, February 17, 2006 12:00:00 AM" and start date ? date "Friday, February 17, 2006 11:59:59 PM" or end date ? date "Friday, February 17, 2006 5:06:04 PM" and start date ? date "Friday, February 17, 2006 12:00:00 AM"
0
count every event of item 10 of every calendar whose start date ? date "Friday, February 17, 2006 12:00:00 AM" and start date ? date "Friday, February 17, 2006 11:59:59 PM" or end date ? date "Friday, February 17, 2006 5:06:04 PM" and start date ? date "Friday, February 17, 2006 12:00:00 AM"
0
count every event of item 11 of every calendar whose start date ? date "Friday, February 17, 2006 12:00:00 AM" and start date ? date "Friday, February 17, 2006 11:59:59 PM" or end date ? date "Friday, February 17, 2006 5:06:04 PM" and start date ? date "Friday, February 17, 2006 12:00:00 AM"
0
end tell
tell application "GrowlHelperApp"
notify with name "In-Script Notification" title "No iCal events today" description "Go outside and play!" application name "AppleScript iCal today's Event Notifier"
end tell


however for today, it is different when I have 2 events

tell application "GrowlHelperApp"
register as application "AppleScript iCal today's Event Notifier" all notifications {"Today's Events", "In-Script Notification"} default notifications {"Today's Events", "In-Script Notification"} icon of application "iCal"
end tell
tell current application
current date
date "Saturday, February 18, 2006 5:09:20 PM"
end tell
tell application "iCal"
count every calendar
11
count every event of item 1 of every calendar whose start date ? date "Saturday, February 18, 2006 12:00:00 AM" and start date ? date "Saturday, February 18, 2006 11:59:59 PM" or end date ? date "Saturday, February 18, 2006 5:09:20 PM" and start date ? date "Saturday, February 18, 2006 12:00:00 AM"
0
count every event of item 2 of every calendar whose start date ? date "Saturday, February 18, 2006 12:00:00 AM" and start date ? date "Saturday, February 18, 2006 11:59:59 PM" or end date ? date "Saturday, February 18, 2006 5:09:20 PM" and start date ? date "Saturday, February 18, 2006 12:00:00 AM"
1
get start date of item 1 of every event of item 2 of every calendar whose start date ? date "Saturday, February 18, 2006 12:00:00 AM" and start date ? date "Saturday, February 18, 2006 11:59:59 PM" or end date ? date "Saturday, February 18, 2006 5:09:20 PM" and start date ? date "Saturday, February 18, 2006 12:00:00 AM"
date "Saturday, February 18, 2006 9:00:00 AM"
get summary of item 1 of every event of item 2 of every calendar whose start date ? date "Saturday, February 18, 2006 12:00:00 AM" and start date ? date "Saturday, February 18, 2006 11:59:59 PM" or end date ? date "Saturday, February 18, 2006 5:09:20 PM" and start date ? date "Saturday, February 18, 2006 12:00:00 AM"
"Term Test"
get description of item 1 of every event of item 2 of every calendar whose start date ? date "Saturday, February 18, 2006 12:00:00 AM" and start date ? date "Saturday, February 18, 2006 11:59:59 PM" or end date ? date "Saturday, February 18, 2006 5:09:20 PM" and start date ? date "Saturday, February 18, 2006 12:00:00 AM"
end tell
tell application "GrowlHelperApp"
notify with name "Today's Events" title "Term Test - 9:00:00 AM" description "no description" application name "AppleScript iCal today's Event Notifier"
end tell
tell application "iCal"
count every event of item 3 of every calendar whose start date ? date "Saturday, February 18, 2006 12:00:00 AM" and start date ? date "Saturday, February 18, 2006 11:59:59 PM" or end date ? date "Saturday, February 18, 2006 5:09:20 PM" and start date ? date "Saturday, February 18, 2006 12:00:00 AM"
0
count every event of item 4 of every calendar whose start date ? date "Saturday, February 18, 2006 12:00:00 AM" and start date ? date "Saturday, February 18, 2006 11:59:59 PM" or end date ? date "Saturday, February 18, 2006 5:09:20 PM" and start date ? date "Saturday, February 18, 2006 12:00:00 AM"
1
get start date of item 1 of every event of item 4 of every calendar whose start date ? date "Saturday, February 18, 2006 12:00:00 AM" and start date ? date "Saturday, February 18, 2006 11:59:59 PM" or end date ? date "Saturday, February 18, 2006 5:09:20 PM" and start date ? date "Saturday, February 18, 2006 12:00:00 AM"
date "Saturday, February 18, 2006 2:00:00 PM"
get summary of item 1 of every event of item 4 of every calendar whose start date ? date "Saturday, February 18, 2006 12:00:00 AM" and start date ? date "Saturday, February 18, 2006 11:59:59 PM" or end date ? date "Saturday, February 18, 2006 5:09:20 PM" and start date ? date "Saturday, February 18, 2006 12:00:00 AM"
"Term Test"
get description of item 1 of every event of item 4 of every calendar whose start date ? date "Saturday, February 18, 2006 12:00:00 AM" and start date ? date "Saturday, February 18, 2006 11:59:59 PM" or end date ? date "Saturday, February 18, 2006 5:09:20 PM" and start date ? date "Saturday, February 18, 2006 12:00:00 AM"
end tell
tell application "GrowlHelperApp"
notify with name "Today's Events" title "Term Test - 2:00:00 PM" description "no description" application name "AppleScript iCal today's Event Notifier"
end tell
tell application "iCal"
count every event of item 5 of every calendar whose start date ? date "Saturday, February 18, 2006 12:00:00 AM" and start date ? date "Saturday, February 18, 2006 11:59:59 PM" or end date ? date "Saturday, February 18, 2006 5:09:20 PM" and start date ? date "Saturday, February 18, 2006 12:00:00 AM"
0
count every event of item 6 of every calendar whose start date ? date "Saturday, February 18, 2006 12:00:00 AM" and start date ? date "Saturday, February 18, 2006 11:59:59 PM" or end date ? date "Saturday, February 18, 2006 5:09:20 PM" and start date ? date "Saturday, February 18, 2006 12:00:00 AM"
0
count every event of item 7 of every calendar whose start date ? date "Saturday, February 18, 2006 12:00:00 AM" and start date ? date "Saturday, February 18, 2006 11:59:59 PM" or end date ? date "Saturday, February 18, 2006 5:09:20 PM" and start date ? date "Saturday, February 18, 2006 12:00:00 AM"
0
count every event of item 8 of every calendar whose start date ? date "Saturday, February 18, 2006 12:00:00 AM" and start date ? date "Saturday, February 18, 2006 11:59:59 PM" or end date ? date "Saturday, February 18, 2006 5:09:20 PM" and start date ? date "Saturday, February 18, 2006 12:00:00 AM"
0
count every event of item 9 of every calendar whose start date ? date "Saturday, February 18, 2006 12:00:00 AM" and start date ? date "Saturday, February 18, 2006 11:59:59 PM" or end date ? date "Saturday, February 18, 2006 5:09:20 PM" and start date ? date "Saturday, February 18, 2006 12:00:00 AM"
0
count every event of item 10 of every calendar whose start date ? date "Saturday, February 18, 2006 12:00:00 AM" and start date ? date "Saturday, February 18, 2006 11:59:59 PM" or end date ? date "Saturday, February 18, 2006 5:09:20 PM" and start date ? date "Saturday, February 18, 2006 12:00:00 AM"
0
count every event of item 11 of every calendar whose start date ? date "Saturday, February 18, 2006 12:00:00 AM" and start date ? date "Saturday, February 18, 2006 11:59:59 PM" or end date ? date "Saturday, February 18, 2006 5:09:20 PM" and start date ? date "Saturday, February 18, 2006 12:00:00 AM"
0
end tell

User avatar
Diggory
Growl Team
Posts: 129
Joined: Sat Dec 04, 2004 12:17 pm
Location: London

Postby Diggory » Mon Feb 20, 2006 1:42 pm

hmmm - I can't quite work out what's going wrong here - can you give me an example of one of the events that took place (but was missed by the script) on the 17th Feb - e.g. start-time end-time - was it an all-day event, or an ordinary one? Does it have a different time-zone attached?

shadow
Harmless
Posts: 13
Joined: Fri Feb 17, 2006 3:23 am

Postby shadow » Tue Feb 21, 2006 6:27 am

here's the event on Friday

Image

I think I found out something related. When the event is newly added it would be picked up. Those friday events were added by me since January, so it doesn't pick up. Do you think it might be related?

User avatar
Diggory
Growl Team
Posts: 129
Joined: Sat Dec 04, 2004 12:17 pm
Location: London

Postby Diggory » Fri Feb 24, 2006 7:42 pm

Sorry - this has me totally stumped, I cannot work out what's going wrong.

:oops:

shadow
Harmless
Posts: 13
Joined: Fri Feb 17, 2006 3:23 am

Postby shadow » Mon Feb 27, 2006 6:32 pm

yea i've confirmed my guess. only newly added or newly updated events will be picked up by the growl. those before the installation of growl or maybe before some updates of mac will not be picked up unless you reupdate all the events again. ;)


Return to “Growl”

Who is online

Users browsing this forum: No registered users