Last active
August 29, 2015 14:15
-
-
Save philip-wernersbach/2cabea523b9357214dc1 to your computer and use it in GitHub Desktop.
Extract OS X Framework List
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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