aboutsummaryrefslogtreecommitdiffstats
path: root/Resources/sequel-pro.scriptSuite
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-10-14 11:39:31 +0000
committerBibiko <bibiko@eva.mpg.de>2009-10-14 11:39:31 +0000
commit080b6b90f0021d6f58090cc19f268f8f0df86351 (patch)
treea090deef364a730d4c5d53b7d38df5ee09a4e185 /Resources/sequel-pro.scriptSuite
parent6ddd95658062b14de2f63746f69b6d65d05792d4 (diff)
downloadsequelpro-080b6b90f0021d6f58090cc19f268f8f0df86351.tar.gz
sequelpro-080b6b90f0021d6f58090cc19f268f8f0df86351.tar.bz2
sequelpro-080b6b90f0021d6f58090cc19f268f8f0df86351.zip
• cleaned and improved AppleScript support
- now 'activate' & 'quit' works due to that fact that if an app is scriptable the Dock's "Quit" command calls handleQuitScriptCommand: which has to be implemened - fixed issue that SPAppController has to be the delegate for NSApp to support AS - added support for AS à la: "get name of first document" or "close every window" etc.
Diffstat (limited to 'Resources/sequel-pro.scriptSuite')
-rw-r--r--Resources/sequel-pro.scriptSuite38
1 files changed, 15 insertions, 23 deletions
diff --git a/Resources/sequel-pro.scriptSuite b/Resources/sequel-pro.scriptSuite
index 3d98e84d..1385660a 100644
--- a/Resources/sequel-pro.scriptSuite
+++ b/Resources/sequel-pro.scriptSuite
@@ -1,36 +1,28 @@
{
"Name" = "Sequel Pro";
"AppleEventCode" = "cmec";
-
+
"Classes" = {
"SPAppController" = {
- "Superclass" = "NSCoreSuite.AbstractObject";
"AppleEventCode" = "capp";
+ "Superclass" = "NSCoreSuite.NSApplication";
"SupportedCommands" = {
- "authenticate" = "authenticate:";
+ "NSCoreSuite.Quit" = "handleQuitScriptCommand:";
};
- };
- };
- "Commands" = {
- "authenticate" = {
- "CommandClass" = "NSScriptCommand";
- "AppleEventCode" = "auth";
- "Class" = "NSString";
- "ResultAppleEventCode" = "****";
- "Arguments" = {
- "query" = {
- "Type" = "NSString";
- "AppleEventCode" = "qery";
+ "ToManyRelationships" = {
+ "orderedDocuments" = {
+ "Type" = "TableDocument";
+ "AppleEventCode" = "docu";
};
- "fifo" = {
- "Type" = "NSString";
- "AppleEventCode" = "fifo";
- };
- "tunnelName" = {
- "Type" = "NSString";
- "AppleEventCode" = "tunn";
+ "orderedWindows" = {
+ "Type" = "NSWindow";
+ "AppleEventCode" = "cwin";
};
};
};
+ "TableDocument" = {
+ "Superclass" = "NSCoreSuite.NSDocument";
+ "AppleEventCode" = "docu";
+ };
};
-} \ No newline at end of file
+}