/CopyLocationToClipboardService/Info.plist
http://osxsystemservices.googlecode.com/ · Unknown · 68 lines · 68 code · 0 blank · 0 comment · 0 complexity · 033e072d7f4e7be2cf513ae7bb1b90da MD5 · raw file
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
- <plist version="1.0">
- <!-- Please see the "NSServices" key below for the way to register
- this bundle as a service -->
- <dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundleExecutable</key>
- <string>${EXECUTABLE_NAME}</string>
- <key>CFBundleName</key>
- <string>${PRODUCT_NAME}</string>
- <key>CFBundleIconFile</key>
- <string></string>
- <key>CFBundleIdentifier</key>
- <string>com.ronolson.copylocationtoclipboardservice</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundlePackageType</key>
- <string>BNDL</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>1</string>
- <key>CFBundleShortVersionString</key>
- <string>1.0</string>
- <key>NSPrincipalClass</key>
- <string></string>
- <!-- Here's where the services stuff begins -->
- <!-- The documentation for this section is in Apple's
- "Services Implementation Guide", under the "Services
- Properties" chapter -->
- <key>NSServices</key>
- <array>
- <dict>
- <key>NSMenuItem</key>
- <dict>
- <key>default</key>
- <!-- This is what will show up in the Services menu -->
- <string>Copy Current Directory to Pasteboard</string>
- </dict>
- <key>NSMessage</key>
- <!-- This is the method that will be executed -->
- <string>getSelectedDirectory</string>
- <key>NSPortName</key>
- <string>CopyLocationToClipboardService</string>
- <!-- Here we're limiting where the service will appear. -->
- <key>NSRequiredContext</key>
- <dict>
- <key>NSTextContent</key>
- <string>FilePath</string>
- </dict>
- <!-- This service is only really useful from the Finder. So
- we want the finder only to send us the URI "public.directory"
- which *will* include packages (on the off-chance you want to
- see the full package directory name) -->
- <key>NSSendFileTypes</key>
- <array>
- <!-- Check out "System-Declared Uniform Type Identifiers"
- in the Apple documentation for the various UTI types.
- In this example, all we want is a directory, which is
- a super-type to other types (e.g. public.folder) -->
- <string>public.directory</string>
- </array>
- </dict>
- </array>
- </dict>
- </plist>