Skip to content

Instantly share code, notes, and snippets.

View mbcrump's full-sized avatar

Michael Crump mbcrump

View GitHub Profile
/* global Application, ObjC, $ */
/**
* repozish.js
*
* this is an example of using os x yosemite's "JavaScript for Automation":
*
* https://developer.apple.com/library/prerelease/mac/releasenotes/interapplicationcommunication/rn-javascriptforautomation/index.html
*
* it repositions some windows based on some position settings. you can run
@n8henrie
n8henrie / txt_to_reminders.applescript
Last active March 10, 2025 22:35
Demonstration of using AppleScript with Reminders.app
--taken from http://benguild.com/2012/04/11/how-to-import-tasks-to-do-items-into-ios-reminders/#comment-1346894559
--set theFileContents to (read file "Users:n8henrie:Desktop:Reminders.txt") -- Change this to the path to your downloaded text file with your tasks in it! (Note the : instead of a / between folders) Or, just name them Reminders.txt and put them in your downloads folder
--set theLines to paragraphs of theFileContents
set theLines to {"task name 1", "task name 2"}
repeat with eachLine in theLines
tell application "Reminders"
set mylist to list "Your List Name"
tell mylist
make new reminder at end with properties {name:eachLine, due date:date "7/10/2014 3:00 PM"}
@mbcrump
mbcrump / MVP2013
Last active December 28, 2015 14:49
MVP Summit 2013
Michael Crump
@mbcrump
[email protected]
-------------
All Source Code (WPF, WP8, Win 8)
http://bit.ly/HTwKWD
RadControl Bits Required
WPF/SL