/CopyLocationToClipboardService/Info.plist
Unknown | 68 lines | 68 code | 0 blank | 0 comment | 0 complexity | 033e072d7f4e7be2cf513ae7bb1b90da MD5 | raw file
1<?xml version="1.0" encoding="UTF-8"?> 2<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 3<plist version="1.0"> 4<!-- Please see the "NSServices" key below for the way to register 5 this bundle as a service --> 6<dict> 7 <key>CFBundleDevelopmentRegion</key> 8 <string>English</string> 9 <key>CFBundleExecutable</key> 10 <string>${EXECUTABLE_NAME}</string> 11 <key>CFBundleName</key> 12 <string>${PRODUCT_NAME}</string> 13 <key>CFBundleIconFile</key> 14 <string></string> 15 <key>CFBundleIdentifier</key> 16 <string>com.ronolson.copylocationtoclipboardservice</string> 17 <key>CFBundleInfoDictionaryVersion</key> 18 <string>6.0</string> 19 <key>CFBundlePackageType</key> 20 <string>BNDL</string> 21 <key>CFBundleSignature</key> 22 <string>????</string> 23 <key>CFBundleVersion</key> 24 <string>1</string> 25 <key>CFBundleShortVersionString</key> 26 <string>1.0</string> 27 <key>NSPrincipalClass</key> 28 <string></string> 29 <!-- Here's where the services stuff begins --> 30 <!-- The documentation for this section is in Apple's 31 "Services Implementation Guide", under the "Services 32 Properties" chapter --> 33 <key>NSServices</key> 34 <array> 35 <dict> 36 <key>NSMenuItem</key> 37 <dict> 38 <key>default</key> 39 <!-- This is what will show up in the Services menu --> 40 <string>Copy Current Directory to Pasteboard</string> 41 </dict> 42 <key>NSMessage</key> 43 <!-- This is the method that will be executed --> 44 <string>getSelectedDirectory</string> 45 <key>NSPortName</key> 46 <string>CopyLocationToClipboardService</string> 47 <!-- Here we're limiting where the service will appear. --> 48 <key>NSRequiredContext</key> 49 <dict> 50 <key>NSTextContent</key> 51 <string>FilePath</string> 52 </dict> 53 <!-- This service is only really useful from the Finder. So 54 we want the finder only to send us the URI "public.directory" 55 which *will* include packages (on the off-chance you want to 56 see the full package directory name) --> 57 <key>NSSendFileTypes</key> 58 <array> 59 <!-- Check out "System-Declared Uniform Type Identifiers" 60 in the Apple documentation for the various UTI types. 61 In this example, all we want is a directory, which is 62 a super-type to other types (e.g. public.folder) --> 63 <string>public.directory</string> 64 </array> 65 </dict> 66 </array> 67</dict> 68</plist>