Note that there are some explanatory texts on larger screens.

plurals
  1. POCreating an OS X Service
    text
    copied!<p>I'm trying to create an OS X Service. I found <a href="http://developer.apple.com/documentation/Cocoa/Conceptual/SysServices/Tasks/providing.html#//apple_ref/doc/uid/20000853" rel="nofollow noreferrer">Providing System Services</a> in Apple's documentation, however I'm finding it less than clear on what exactly I need to do. I'm currently using an application to register my service (thinking that would be more straight forward - eventually I'd like to create a .service), however even after a logout/login my service still doesn't appear in the list of services in the menu.</p> <p>Is there some step missing from the linked document that I'm missing? I feel like there is some registration step so that the OS knows about my service (in addition to what is listed in that doc), but I'm not able to find anything.</p> <p>Thanks in advance. :)</p> <p>Edit: Here is my NSServices dictionary from my Info.plist file:</p> <pre><code> &lt;key&gt;NSServices&lt;/key&gt; &lt;array&gt; &lt;dict&gt; &lt;key&gt;NSPortName&lt;/key&gt; &lt;string&gt;POPrlTest&lt;/string&gt; &lt;key&gt;NSMessage&lt;/key&gt; &lt;string&gt;shortenUrlService&lt;/string&gt; &lt;key&gt;NSSendTypes&lt;/key&gt; &lt;string&gt;NSStringPboardType&lt;/string&gt; &lt;key&gt;NSReturnTypes&lt;/key&gt; &lt;string&gt;NSStringPboardType&lt;/string&gt; &lt;key&gt;NSMenuItem&lt;/key&gt; &lt;dict&gt; &lt;key&gt;default&lt;/key&gt; &lt;string&gt;Shorten URL&lt;/string&gt; &lt;/dict&gt; &lt;/dict&gt; &lt;/array&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload