-
Website
http://toxicsoftware.com/ -
Original page
http://toxicsoftware.com/manoxcode/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
schwa
20 comments · 2 points
-
Alexander Mikhalev
1 comment · 1 points
-
myxibrium
1 comment · 1 points
-
somegeekintn
1 comment · 1 points
-
Stewf
2 comments · 1 points
-
-
Popular Threads
I have a script I've used for a while that uses PDF rendering of pages-- see http://www.atomicbird.com/blog/2007/07/man-page... to see how it works.
should work as well and doesn't require gui scripting. Use "//apple_ref/doc/c_ref/" to show documentation for C code (e.g. Carbon functions and constants; cocoa class names work too).
But you've just killed my blog post! ;-)
So to open the "interesting" man page (1) (that's what your script does as well) you can use
tell application "Xcode" to show document with apple_ref "//apple_ref/c/func/strlen"
to open the man page for strlen. And
tell application "Xcode" to show document with apple_ref "//apple_ref/occ/instm/NSArray/initWithArray:copyItems:"
to show the documentation for -[NSArray initWithArray:copyItems:]. And so on. Semi-useful if you want to use a better editor than xed for code editing, but still look at XCode documentation from there (only semi-useful because you have to guess the top-level link like occ, c etc first before sending the applescript command to xcode).