<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>toxicsoftware.com - Latest Comments in View man pages in Xcode script</title><link>http://toxicsoftware.disqus.com/</link><description></description><atom:link href="https://toxicsoftware.disqus.com/view_man_pages_in_xcode_script/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 23 Nov 2007 04:11:46 -0000</lastBuildDate><item><title>Re: View man pages in Xcode script</title><link>http://toxicsoftware.com/manoxcode.html#comment-1656047</link><description>&lt;p&gt;Turns out that what I wrote doesn't work with Leopard (it did work with Tiger, though). But the apple_ref scheme is actually documented: &lt;a href="http://developer.apple.com/documentation/DeveloperTools/Conceptual/HeaderDoc/anchors/chapter_950_section_2.html#//apple_ref/doc/uid/TP40001215-CH347-SW1" rel="nofollow noopener" target="_blank" title="http://developer.apple.com/documentation/DeveloperTools/Conceptual/HeaderDoc/anchors/chapter_950_section_2.html#//apple_ref/doc/uid/TP40001215-CH347-SW1"&gt;http://developer.apple.com/...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;So to open the "interesting" man page (1) (that's what your script does as well) you can use&lt;/p&gt;&lt;p&gt;    tell application "Xcode" to show document with apple_ref "//apple_ref/c/func/strlen"&lt;/p&gt;&lt;p&gt;to open the man page for strlen. And&lt;/p&gt;&lt;p&gt;    tell application "Xcode" to show document with apple_ref "//apple_ref/occ/instm/NSArray/initWithArray:copyItems:"&lt;/p&gt;&lt;p&gt;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).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nico</dc:creator><pubDate>Fri, 23 Nov 2007 04:11:46 -0000</pubDate></item><item><title>Re: View man pages in Xcode script</title><link>http://toxicsoftware.com/manoxcode.html#comment-1656049</link><description>&lt;p&gt;Nico, if that works then very nice.&lt;/p&gt;&lt;p&gt;But you've just killed my blog post! ;-)&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">schwa</dc:creator><pubDate>Tue, 25 Sep 2007 14:44:22 -0000</pubDate></item><item><title>Re: View man pages in Xcode script</title><link>http://toxicsoftware.com/manoxcode.html#comment-1656048</link><description>&lt;p&gt;osascript -e ''tell application "XCode" to show document with apple_ref "//apple_ref/doc/man/1/'$1&lt;/p&gt;&lt;p&gt;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).&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nico</dc:creator><pubDate>Tue, 25 Sep 2007 14:24:16 -0000</pubDate></item><item><title>Re: View man pages in Xcode script</title><link>http://toxicsoftware.com/manoxcode.html#comment-1656052</link><description>&lt;p&gt;I like the way Xcode’s viewer inserts hyperlinks to cross-referenced man pages.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">hollywood</dc:creator><pubDate>Mon, 30 Jul 2007 06:25:56 -0000</pubDate></item><item><title>Re: View man pages in Xcode script</title><link>http://toxicsoftware.com/manoxcode.html#comment-1656051</link><description>&lt;p&gt;Great script -- thanks for that!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Justin Miller</dc:creator><pubDate>Sun, 29 Jul 2007 22:23:14 -0000</pubDate></item><item><title>Re: View man pages in Xcode script</title><link>http://toxicsoftware.com/manoxcode.html#comment-1656050</link><description>&lt;p&gt;I like it. Dueling man page hacks.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">schwa</dc:creator><pubDate>Sat, 28 Jul 2007 20:24:53 -0000</pubDate></item><item><title>Re: View man pages in Xcode script</title><link>http://toxicsoftware.com/manoxcode.html#comment-1656053</link><description>&lt;p&gt;Thanks, that's pretty cool.  I like the way Xcode's viewer inserts hyperlinks to cross-referenced man pages.&lt;/p&gt;&lt;p&gt;I have a script I've used for a while that uses PDF rendering of pages-- see &lt;a href="http://www.atomicbird.com/blog/2007/07/man-page-pdfs" rel="nofollow noopener" target="_blank" title="http://www.atomicbird.com/blog/2007/07/man-page-pdfs"&gt;http://www.atomicbird.com/b...&lt;/a&gt; to see how it works.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tom Harrington</dc:creator><pubDate>Sat, 28 Jul 2007 18:03:08 -0000</pubDate></item></channel></rss>