Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

gabedamien

macrumors member
Original poster
Oct 30, 2007
34
0
CT/NY
Hi all,

I just set iCal to subscribe (with hourly refreshes) to my Google Calendars, so that I can sync them to my iPod.

HOWEVER, if I don't actually *use* iCal (i.e., I never open it), will the subscribed calendars automatically refresh anytime I sync to my iPod? I cannot directly test this myself for a few days.

If not, I really don't want to manually open iCal and hit refresh every time I sync my iPod. Clever alternatives are very welcome, such as if there could be a way to automatically trigger an Applescript to refresh the calendars every time I ran the sync.

Thanks in advance,
-G
 
Well, nobody seems to be interested, but here was my solution. I wrote an applescript that opens iCal, forces a refresh through the command-shift-R system keypress (note the applescript library "reload" command does not refresh subscribed web calendars), waits 5 seconds to be sure, quits, and sends a Growl notification.

Here it is:
tell application "iCal"
activate
tell application "System Events"
keystroke "R" using {command down, shift down}
end tell
delay 5
quit
end tell

tell application "GrowlHelperApp"
-- Make a list of all the notification types
-- that this script will ever send:
set the allNotificationsList to ¬
{"Script Ran"}

-- Make a list of the notifications
-- that will be enabled by default.
-- Those not enabled by default can be enabled later
-- in the 'Applications' tab of the growl prefpane.
set the enabledNotificationsList to ¬
{"Script Ran"}

-- Register our script with growl.
-- You can optionally (as here) set a default icon
-- for this script's notifications.
register as application ¬
"iCal Refresh Script" all notifications allNotificationsList ¬
default notifications enabledNotificationsList ¬
icon of application "iCal"

-- Send a Notification...
notify with name ¬
"Script Ran" title ¬
"iCal Refresh Script" description ¬
"iCal was opened and commanded to refresh." application name "iCal Refresh Script"
end tell
 
Thank you

Wow, i've been searching the past 2 hours for a hack to force an instant refresh on ical subscriptions.

As I'm not with my mac right now I'll post in a few days if it worked...

For now I'm just stoked that I found a way to solve the problem!

Thanks!

EDIT: I can now confirm that it worked - thx again!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.