]> gitweb.factorcode.org Git - factor.git/commitdiff
cocoa.apple-script: Make APPLESCRIPT: take a string.
authorDoug Coleman <doug.coleman@gmail.com>
Sun, 6 Aug 2017 03:33:47 +0000 (22:33 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Sun, 6 Aug 2017 03:33:47 +0000 (22:33 -0500)
basis/cocoa/apple-script/apple-script-docs.factor
basis/cocoa/apple-script/apple-script.factor

index 9890083dea121746f877ccd4ef75285da364ab18..820f08014618dd6bdad0a03ec9bebce53e8efba6 100644 (file)
@@ -8,6 +8,6 @@ HELP: run-apple-script
 { $notes "Currently, return values are unsupported." } ;
 
 HELP: APPLESCRIPT:
-{ $syntax "APPLESCRIPT: word ...applescript... ;APPLESCRIPT" }
-{ $values { "word" "a new word to define" } { "...applescript..." "AppleScript source text" } }
+{ $syntax "APPLESCRIPT: word [[ ...applescript string... ]] " }
+{ $values { "word" "a new word to define" } { "...applescript string..." "AppleScript source text" } }
 { $description "Defines a word that when called will run the provided uncompiled AppleScript. The word has stack effect " { $snippet "( -- )" } " due to return values being currently unsupported." } ;
index f3cb8ec798d7209e80ade3fa95c93847871dca29..123bf4c842f3cd26bb73cc221126ca1af62c4781 100644 (file)
@@ -12,5 +12,5 @@ IN: cocoa.apple-script
     f -> executeAndReturnError: drop ;
 
 SYNTAX: APPLESCRIPT:
-    scan-new-word ";APPLESCRIPT" parse-multiline-string
+    scan-new-word scan-object
     [ run-apple-script ] curry ( -- ) define-declared ;