I wrote a small app that I want to open by Services Keyboard short cut.
I put these code into the info.plist, but I have to press ESC every time after I press my shortcut.
It seams so that I must send a message back to finish the service call.
Code: Select all
<key>NSServices</key>
<array>
<dict>
<key>NSMenuItem</key>
<dict>
<key>default</key>
<string>myService</string>
</dict>
<key>NSMessage</key>
<string>openFile</string>
<key>NSPortName</key>
<string>myAppName</string>
<key>NSSendTypes</key>
</array>
</dict>
</array>