Skip to content

Instantly share code, notes, and snippets.

@Peeja
Created February 19, 2009 04:07
Show Gist options
  • Save Peeja/66723 to your computer and use it in GitHub Desktop.
Save Peeja/66723 to your computer and use it in GitHub Desktop.
require 'osx/cocoa'
include OSX
things_path = NSWorkspace.sharedWorkspace.fullPathForApplication("Things")
things_bundle = NSBundle.bundleWithPath(things_path)
NSManagedObjectModel.mergedModelFromBundles([things_bundle]).entities.each { |e| puts e.name }
# >> Record
# >> SyncedTask
# >> MobileSyncItem
# >> Focus
# >> Globals
# >> Coworker
# >> Note
# >> SyncedCalendar
# >> Milestone
# >> Thing
# >> ToDo
# >> Tag
# >> Team
# >> Reminder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment