From 080b6b90f0021d6f58090cc19f268f8f0df86351 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Wed, 14 Oct 2009 11:39:31 +0000 Subject: =?UTF-8?q?=E2=80=A2=20cleaned=20and=20improved=20AppleScript=20su?= =?UTF-8?q?pport=20-=20now=20'activate'=20&=20'quit'=20works=20due=20to=20?= =?UTF-8?q?that=20fact=20that=20if=20an=20app=20is=20scriptable=20the=20Do?= =?UTF-8?q?ck's=20"Quit"=20command=20calls=20handleQuitScriptCommand:=20wh?= =?UTF-8?q?ich=20has=20to=20be=20implemened=20-=20fixed=20issue=20that=20S?= =?UTF-8?q?PAppController=20has=20to=20be=20the=20delegate=20for=20NSApp?= =?UTF-8?q?=20to=20support=20AS=20-=20added=20support=20for=20AS=20=C3=A0?= =?UTF-8?q?=20la:=20"get=20name=20of=20first=20document"=20or=20"close=20e?= =?UTF-8?q?very=20window"=20etc.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Resources/Info.plist | 2 +- Resources/sequel-pro.scriptSuite | 38 ++++++++++++++-------------------- Resources/sequel-pro.scriptTerminology | 30 +++++++-------------------- 3 files changed, 24 insertions(+), 46 deletions(-) (limited to 'Resources') 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 @@ CFBundleVersion NSAppleScriptEnabled - YES + NSHumanReadableCopyright 0.9.6 (r1130) LSMinimumSystemVersion 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 +} -- cgit v1.2.3