Permalink
Browse files

Add 'get .Object types' handlers to the scripting suite

Allows you to return a list of valid iObject/dObject types for the script
  • Loading branch information...
1 parent c21e4ff commit b903ab9a8d4e5f472b51f6df3b172720128e2881 @pjrobertson committed Feb 1, 2013
@@ -75,7 +75,7 @@
</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">
+ <command name="open files" code="DAEDopfl" description="Open file(s) 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" />
@@ -91,5 +91,13 @@
<cocoa class="NSScriptCommand"/>
<result description="value to return to Quicksilver" type="integer"/>
</command>
+ <command name="get indirect types" code="DAEDgiob" description="Get the valid indirect (3rd pane) object types for this action. Scripts with this handler can customize the types of objects displayed in Quicksilver's 3rd pane by returning a list of types supported. Valid values are shown at http://qsapp.com/wiki/AppleScript_Types">
+ <cocoa class="NSScriptCommand"/>
+ <result description="value to return to Quicksilver" type="list"/>
+ </command>
+ <command name="get direct types" code="DAEDgdob" description="Get the valid direct (1st pane) object types for which this action will appear. Scripts with this handler can customize for which types of objects the action appears for, by returning a list of types supported. Valid values are shown at http://qsapp.com/wiki/AppleScript_Types">
+ <cocoa class="NSScriptCommand"/>
+ <result description="value to return to Quicksilver" type="list"/>
+ </command>
</suite>
</dictionary>
@@ -19,6 +19,32 @@
<key>Type</key>
<string>NSNumber&lt;Int&gt;</string>
</dict>
+ <key>GetDirectTypes</key>
+ <dict>
+ <key>AppleEventClassCode</key>
+ <string>DAED</string>
+ <key>AppleEventCode</key>
+ <string>gdob</string>
+ <key>CommandClass</key>
+ <string>NSScriptCommand</string>
+ <key>ResultAppleEventCode</key>
+ <string>****</string>
+ <key>Type</key>
+ <string>list</string>
+ </dict>
+ <key>GetIndirectTypes</key>
+ <dict>
+ <key>AppleEventClassCode</key>
+ <string>DAED</string>
+ <key>AppleEventCode</key>
+ <string>giob</string>
+ <key>CommandClass</key>
+ <string>NSScriptCommand</string>
+ <key>ResultAppleEventCode</key>
+ <string>****</string>
+ <key>Type</key>
+ <string>list</string>
+ </dict>
<key>OpenFiles</key>
<dict>
<key>AppleEventClassCode</key>
@@ -11,6 +11,20 @@
<key>Name</key>
<string>get argument count</string>
</dict>
+ <key>GetDirectTypes</key>
+ <dict>
+ <key>Description</key>
+ <string>Get the valid direct (1st pane) object types that this action will show for (currently unused). Scripts with this handler can customize for which types of objects the action appears for, by returning a list of types supported. Valid values are shown at http://qsapp.com/wiki/AppleScript_Types</string>
+ <key>Name</key>
+ <string>get direct types</string>
+ </dict>
+ <key>GetIndirectTypes</key>
+ <dict>
+ <key>Description</key>
+ <string>Get the valid indirect (3rd pane) object types for this action. Scripts with this handler can customize the types of objects displayed in Quicksilver's 3rd pane by returning a list of types supported. Valid values are shown at http://qsapp.com/wiki/AppleScript_Types</string>
+ <key>Name</key>
+ <string>get indirect types</string>
+ </dict>
<key>OpenFiles</key>
<dict>
<key>Arguments</key>
@@ -24,7 +38,7 @@
</dict>
</dict>
<key>Description</key>
- <string>Open files from Quicksilver</string>
+ <string>Open file(s) from Quicksilver</string>
<key>Name</key>
<string>open files</string>
<key>UnnamedArgument</key>
@@ -473,7 +473,7 @@ resource 'aete' (0, "Quicksilver") {
/* Events */
"open files",
- "Open files from Quicksilver",
+ "Open file(s) from Quicksilver",
'DAED', 'opfl',
'****',
"value to return to Quicksilver",
@@ -515,6 +515,28 @@ resource 'aete' (0, "Quicksilver") {
dp_none__,
{
+ },
+
+ "get indirect types",
+ "Get the valid indirect (3rd pane) object types for this action. Scripts with this handler can customize the types of objects displayed in Quicksilver's 3rd pane by returning a list of types supported. Valid values are shown at http://qsapp.com/wiki/AppleScript_Types",
+ 'DAED', 'giob',
+ '****',
+ "value to return to Quicksilver",
+ replyRequired, singleItem, notEnumerated, Reserved13,
+ dp_none__,
+ {
+
+ },
+
+ "get direct types",
+ "Get the valid direct (1st pane) object types that this action will show for (currently unused). Scripts with this handler can customize for which types of objects the action appears for, by returning a list of types supported. Valid values are shown at http://qsapp.com/wiki/AppleScript_Types",
+ 'DAED', 'gdob',
+ '****',
+ "value to return to Quicksilver",
+ replyRequired, singleItem, notEnumerated, Reserved13,
+ dp_none__,
+ {
+
}
},
{

0 comments on commit b903ab9

Please sign in to comment.