aboutsummaryrefslogtreecommitdiffstats
path: root/Resources
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
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')
-rw-r--r--Resources/Info.plist2
-rw-r--r--Resources/sequel-pro.scriptSuite38
-rw-r--r--Resources/sequel-pro.scriptTerminology30
3 files changed, 24 insertions, 46 deletions
diff --git a/Resources/Info.plist b/Resources/Info.plist
index 819db1db..59f62796 100644
--- a/Resources/Info.plist
+++ b/Resources/Info.plist
@@ -64,7 +64,7 @@
<key>CFBundleVersion</key>
<string></string>
<key>NSAppleScriptEnabled</key>
- <string>YES</string>
+ <true/>
<key>NSHumanReadableCopyright</key>
<string>0.9.6 (r1130)</string>
<key>LSMinimumSystemVersion</key>
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
+}
diff --git a/Resources/sequel-pro.scriptTerminology b/Resources/sequel-pro.scriptTerminology
index f569cbfe..cf65a7f3 100644
--- a/Resources/sequel-pro.scriptTerminology
+++ b/Resources/sequel-pro.scriptTerminology
@@ -1,31 +1,17 @@
{
- "Name" = "Sequel Pro suite";
+ "Name" = "Sequel Pro Suite";
"Description" = "Sequel Pro specific classes.";
+
"Classes" = {
"SPAppController" = {
"Name" = "application";
"PluralName" = "applications";
- "Description" = "Sequel Pro application";
+ "Description" = "Sequel Pro's top level scripting object.";
};
- "Commands" = {
- "authenticate" = {
- "Name" = "authenticate";
- "Description" = "Open the dialog asking for password or passphrase";
- "Arguments" = {
- "query" = {
- "Name" = "query phrase";
- "Description" = "The string to show in the dialog";
- };
- "fifo" = {
- "Name" = "fifo";
- "Description" = "The FIFO file where expecting the passphrase";
- };
- "tunnelName" = {
- "Name" = "tunnel";
- "Description" = "Tunnel's name";
- };
- };
- };
+ "TableDocument" = {
+ "Name" = "document";
+ "PluralName" = "documents";
+ "Description" = "A Sequel Pro document.";
};
};
-} \ No newline at end of file
+}