Can someone help me write up a quick applecript

markelim

macrumors member
Original poster
Aug 2, 2010
90
0
Hi guys, I'm trying to write a applescript that opens up ical, waits 2 mins and closes the application, just enough time for it to sync my calendars. Can anyone help me with this. Im really no good at programming
 

ergdegdeg

Moderator emeritus
Oct 13, 2007
1,628
0
You should be able to copy this into the AppleScript editor and save it.
Code:
tell application "iCal"
	activate
	delay 120
	quit
end tell
 

chown33

Moderator
Staff member
Aug 9, 2009
8,772
5,142
vertical
You could do it in Automator. Without being a programmer.

1. Launch Application
2. Pause
3. Quit Application

Each of those actions is under the Utilities sub-section of the builtin action library.
 

markelim

macrumors member
Original poster
Aug 2, 2010
90
0
THank you soo much. I have never tried automator and its something i ought to look into.

Thanks again

Mark
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.