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

node path mac

Posted: August 5, 2016 in web

$ npm -help

at the bottom you will see similar to this:

npm@2.15.4 /usr/local/xxx/nvm/0.30.1/versions/node/v0.12.13/lib/node_modules/npm

With that, you may be able to find the path /usr/local/xxx/nvm/0.30.1/versions/node/v0.12.13/bin/node as your node local path

Sass location mac netbeans

Posted: April 27, 2016 in web

/Library/Ruby/Gems/2.0.0/gems/sass-3.4.22/bin/sass

clean up unused css

Posted: April 5, 2016 in web

http://meeech.amihod.com/very-useful-find-unused-css-rules-with-google/

Debugging Gulp Tasks

Posted: April 1, 2016 in web

http://www.greg5green.com/blog/debugging-gulp-js-tasks/

node-debug slow

Posted: April 1, 2016 in web

solution:

node-debug –no-preload –hidden=’node_modules’ /usr/local/bin/gulp default

gulp source map sass

Posted: February 1, 2016 in web

https://www.npmjs.com/package/gulp-sass#source-maps