• Home
  • History
  • Annotate
  • only in this directory
NameDateSize

..22-Jan-201325

README.rtfH A D10-Jan-20131.5 KiB

rebuild.pyH A D10-Jan-2013115

ServiceTest.pyH A D10-Jan-20132.5 KiB

setup.pyH A D10-Jan-20131.1 KiB

SimpleService_main.pyH A D10-Jan-2013439

summary.txtH A D10-Jan-201354

README.rtf

1{\rtf1\mac\ansicpg10000\cocoartf102
2{\fonttbl\f0\fswiss\fcharset77 Helvetica-Bold;\f1\fswiss\fcharset77 Helvetica;}
3{\colortbl;\red255\green255\blue255;}
4\vieww12000\viewh15840\viewkind0
5\deftab720
6\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\pardeftab720\ql\qnatural
7
8\f0\b\fs36 \cf0 SimpleService\
9\
10
11\f1\b0\fs24 SimpleService is a little program which shows to to create services for the services menu.  There are two services provided in this example:\
12\
13\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\pardeftab720\li160\fi-160\ql\qnatural
14\cf0 \'a5 "Open File" service, which opens the file specified by the provided string. This service has no return value.\
15\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\pardeftab720\ql\qnatural
16\cf0 \
17\'a5 "Capitalize" service, which takes a string and returns a capitalized version.\
18\
19The service information is stored in Info.plist and read by the system during login. Take a look at the "Application Settings" to see how the service information is specified. Details on the various entries can be found in the  documentation, in "Services" under "Programming Topics."\
20\
21To install SimpleService, copy it into ~/Library/Services, log out and log back in.\
22\
23There are some tricky issues in creating a service:\
24\'a5 The Info.plist needs to specify LSBackgroundOnly = 1, in order to assure the service does not appear in the dock.\
25\pard\tx960\tx1920\tx2880\tx3840\tx4800\tx5760\tx6720\tx7680\tx8640\tx9600\pardeftab720\li160\fi-160\ql\qnatural
26\cf0 \
27\
28}