Applescript export calendar to google

Posted: January 10, 2017 in web
activate application "Calendar"
delay 1
tell application "System Events"
	
	tell process "Calendar"
		set frontmost to true
		click menu item 1 of menu 1 of menu item 6 of menu 1 of menu bar item "File" of menu bar 1
		keystroke return
		delay 2
		keystroke space
		delay 2
	end tell
	delay 5
	quit
	tell application "Safari"
		set frontmost to true
		open location "https://calendar.google.com/calendar/render?pli=1#settings-calendars_9"
		do JavaScript "window.addEventListener('load', function() {
    })" in document 1
	end tell
end tell
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s