Skip to content

Instantly share code, notes, and snippets.

@philip-wernersbach
Last active August 29, 2015 14:15
Show Gist options
  • Save philip-wernersbach/2cabea523b9357214dc1 to your computer and use it in GitHub Desktop.
Save philip-wernersbach/2cabea523b9357214dc1 to your computer and use it in GitHub Desktop.
Extract OS X Framework List
/*
Script to extract framework list from
https://developer.apple.com/library/mac/documentation/MacOSX/Conceptual/OSX_Technology_Overview/SystemFrameworks/SystemFrameworks.html
*/
var framework = /(.+)\.framework/
var possibleNames = document.getElementsByTagName("code");
for (var i=0; i < possibleNames.length; i++) {
var possibleName = framework.exec(possibleNames[i].textContent);
if ((possibleName !== null) && (possibleName[1] !== null)) {
console.log(possibleName[1]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment