Permalink
Browse files

add open files applescript action for Quicksilver to deal with files …

…in AppleScripts (and iObjects)
  • Loading branch information...
pjrobertson committed Aug 14, 2012
1 parent 88abf68 commit 6c555cac4d6d699a0b6caddda42932c56daad876
@@ -75,6 +75,12 @@
</suite>
<suite name="Script Handlers" code="DAEH" description="Handlers for Actions and other scripts.">
<cocoa name="QuicksilverHandlers"/>
+ <command name="open files" code="DAEDopfl" description="Open files from Quicksilver">
+ <cocoa class="NSScriptCommand" />
+ <direct-parameter description="File to open" type="any" />
+ <parameter name="with" code="IdOb" description="indirect object" type="any" optional="yes" />
+ <result description="value to return to Quicksilver" type="any" />
+ </command>
<command name="process text" code="DAEDopnt" description="Process some text. Scripts with this handler gain a &apos;Process Text&apos; action">
<cocoa class="NSScriptCommand"/>
<direct-parameter description="text to process" type="text"/>
@@ -19,6 +19,36 @@
<key>Type</key>
<string>NSNumber&lt;Int&gt;</string>
</dict>
+ <key>OpenFiles</key>
+ <dict>
+ <key>AppleEventClassCode</key>
+ <string>DAED</string>
+ <key>AppleEventCode</key>
+ <string>opfl</string>
+ <key>Arguments</key>
+ <dict>
+ <key>with</key>
+ <dict>
+ <key>AppleEventCode</key>
+ <string>IdOb</string>
+ <key>Optional</key>
+ <string>YES</string>
+ <key>Type</key>
+ <string>NSObject</string>
+ </dict>
+ </dict>
+ <key>CommandClass</key>
+ <string>NSScriptCommand</string>
+ <key>ResultAppleEventCode</key>
+ <string>****</string>
+ <key>Type</key>
+ <string>NSObject</string>
+ <key>UnnamedArgument</key>
+ <dict>
+ <key>Type</key>
+ <string>NSObject</string>
+ </dict>
+ </dict>
<key>ProcessText</key>
<dict>
<key>AppleEventClassCode</key>
@@ -11,6 +11,28 @@
<key>Name</key>
<string>get argument count</string>
</dict>
+ <key>OpenFiles</key>
+ <dict>
+ <key>Arguments</key>
+ <dict>
+ <key>with</key>
+ <dict>
+ <key>Description</key>
+ <string>indirect object</string>
+ <key>Name</key>
+ <string>with</string>
+ </dict>
+ </dict>
+ <key>Description</key>
+ <string>Open files from Quicksilver</string>
+ <key>Name</key>
+ <string>open files</string>
+ <key>UnnamedArgument</key>
+ <dict>
+ <key>Description</key>
+ <string>File to open</string>
+ </dict>
+ </dict>
<key>ProcessText</key>
<dict>
<key>Arguments</key>
@@ -472,6 +472,23 @@ resource 'aete' (0, "Quicksilver") {
{
/* Events */
+ "open files",
+ "Open files from Quicksilver",
+ 'DAED', 'opfl',
+ '****',
+ "value to return to Quicksilver",
+ replyRequired, singleItem, notEnumerated, Reserved13,
+ '****',
+ "File to open",
+ directParamRequired,
+ singleItem, notEnumerated, Reserved13,
+ {
+ "with", 'IdOb', '****',
+ "indirect object",
+ optional,
+ singleItem, notEnumerated, Reserved13
+ },
+
"process text",
"Process some text. Scripts with this handler gain a 'Process Text' action",
'DAED', 'opnt',

0 comments on commit 6c555ca

Please sign in to comment.