43 Folders

43 Folders feed subscription icon - Shiny!Time, Attention, and Creative Work. After 4 years and a lot of productivity pr0n, we’re shifting gears. Re-learn how to use 43 Folders. Then back to work. [»]

”What’s 43 Folders?”
43Folders.com is Merlin Mann’s website about finding the time and attention to do your best creative work.

Refresh subscribed iCal calendars?

Hey,
This is for any applescript gurus in the 43folders crowd...

I've got a Google Calendar that I use for all of my calendaring needs. I have subscribed to my GCalendar with iCal (1.5.5 -- I still have Panther) in order to sync the calendar to my iPod.

Unfortunately, unless I open and refresh my calendar every day, it doesn't seem to refresh the subscription on it's own. I've tried the following applescript, but it's just opened iCal without refreshing my subscribed calendars. Any suggestions?

tell application "iCal"
	launch
	reload calendars
end tell

Thanks so much for any advice/assistance!


TOPICS: Mac OS X

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
dancingbrook's picture

Hey, I've got a Google Calendar...

NurseGirl;6310 wrote:
Hey,
I've got a Google Calendar that I use for all of my calendaring needs. I have subscribed to my GCalendar with iCal (1.5.5 -- I still have Panther) in order to sync the calendar to my iPod.

Unfortunately, unless I open and refresh my calendar every day, it doesn't seem to refresh the subscription on it's own.

I think you are making it too hard.
Did you set iCal to auto-refresh that calendar every 15 minutes (when you subscribed, or now in the info drawer)?

I think there must be an error somewhere else. Does it refresh with a command-R?

Mine will refresh no problem on command. I am waiting 15 minutes to see if it will auto-refresh.

dancingbrook's picture

Mine will refresh no problem...

dancingbrook;6314 wrote:

Mine will refresh no problem on command. I am waiting 15 minutes to see if it will auto-refresh.

It is working for me, refreshed with no problem. So the problem appears to lie elsewhere.

I'd be happy to share the steps I went through to set it up if that would help. I am using iCal 2.0.4.

BTW: Why not just use iCal rather than Google Cal? Just curious as to why one would use Google Cal if on a Mac.

NurseGirl's picture

Sorry, I wasn't clear enough. I...

Sorry, I wasn't clear enough.

I can get iCal to auto-refresh if I leave it open. What I'm hoping for is to be able to write a script that opens up iCal, refreshes it immediately, and then closes it (so it isn't taking up additional memory). For some reason, the "reload calendars" applescript command doesn't seem to do this.

I wonder if there would be a way to set up a script that opens up iCal, and then closes it 20 minutes later (guaranteeing that it would have time to refresh)? Maybe with a scriptable timer app. I'll try it out and see how it works.

Quote:
BTW: Why not just use iCal rather than Google Cal? Just curious as to why one would use Google Cal if on a Mac.

I have a Mac at home, but use Windows and Ubuntu boxes at work, so I've found the gMail & Google Cal combo priceless.

dancingbrook's picture

I have a Mac at...

NurseGirl;6318 wrote:
I have a Mac at home, but use Windows and Ubuntu boxes at work, so I've found the gMail & Google Cal combo priceless.

You are right, they are "priceless".

Man (I mean Girl), all that work for nothing? I'd just leave iCal running. Mine uses .3 to .4 % of CPU and very little memory sitting in the background. Launch Activity Monitor to see what yours does. There are apps that will run and quit iCal, and probably a script that will "refresh" (command-R), but seems like trying to crack a nut with a sledge hammer. Why not just launch iCal and refresh when syncing the iPod. Actually, this should just happen when syncing (are you listening Apple?).

If you had a .Mac account the whole thing might be even easier, and you could sync while at work as well, if you left your Mac running. The possibilities...

Good luck. I don't script.

Carla's picture

This article might get the...

This article might get the ball rolling: using periodic, cron and Applescript in Panther.

In the meantime, I'm still looking, because I know this can be done.

dancingbrook's picture

There you go. Use iCal alarms...

There you go.

Use iCal alarms to simply "Open" iCal, and then set another alarm to run a simple script a few minutes later to quit iCal. This could be done every day.

Enter a suggestion on Apple's iCal Feedback page, and perhaps this can be incorporated (easily) into the next release of iCal.

Carla's picture

Enter a suggestion on Apple's...

dancingbrook;6387 wrote:
Enter a suggestion on Apple's iCal Feedback page, and perhaps this can be incorporated (easily) into the next release of iCal.

Absolutely! (off-topic) I did so for iPhoto when it went from free, i.e., part of the purchased OS, to a pay-only product. Suggest, suggest, suggest! :)

Carla's picture

Another alternative is to have...

Another alternative is to have iCal start up as a hidden application when you login, then set subscriptions to refresh at whatever rate you wish. They'll refresh, but iCal will stay out of your way.

You can set that up in the "Users" sections of the System Preferences.

dancingbrook's picture

Absolutely! (off-topic) I did so...

carla;6393 wrote:
Absolutely! (off-topic) I did so for iPhoto when it went from free, i.e., part of the purchased OS, to a pay-only product. Suggest, suggest, suggest! :)

Your suggestion must have worked; iPhoto remains "free"...with new hardware. ;-)
Actually, for the price they charge, it is practically free.

dancingbrook's picture

Another alternative is to have...

carla;6394 wrote:
Another alternative is to have iCal start up as a hidden application when you login, then set subscriptions to refresh at whatever rate you wish. They'll refresh, but iCal will stay out of your way.

You can set that up in the "Users" sections of the System Preferences.

That is smarter than having iCal open itself, but not as creative, IMHO. :)

About NurseGirl

 
EXPLORE 43Folders THE GOOD STUFF

An Oblique Strategy:
Discover the recipes you are using and abandon them


STAY IN THE LOOP:

Subscribe with Google Reader

Subscribe on Netvibes

Add to Technorati Favorites

Subscribe on Pageflakes

Add RSS feed

The Podcast Feed

Inbox Zero

The original 43 Folders series looking at the skills, tools, and attitude needed to empty your email inbox — and then keep it that way. Don’t miss the free video of Merlin’s Inbox Zero presentation.

Making Time

3-part series on attention management for artists and makers. Read Bad Correspondence, The Job You Think You Have, and One Clear Line.