Chipmunk Basic Language Module
I’ve updated my Chipmunk Basic language module for TextWrangler/BBEdit. Named subroutines are now identified in the function popup menu.
Download cbastw.plist.zip 2k (requires TextWrangler 2.2 or BBEdit 8.5)
Posted on Monday, November 12th, 2007. Tags: code.
2 Responses to “Chipmunk Basic Language Module”
Posted by Tom on Saturday, August 4th, 2012 at 9:42 PM.
Hi
Thank you for your excellent .plist for text coloring on BBEdit for Chimpmunk Basic interpreter :-)
Could you make a script for BBEdit to run directly to the terminal?
My idea is to use the same tw2cbas.scpt but running to the terminal.
How can change this code to run on terminal from BBEDit?:
—
tell application “BBEdit”
activate
try
set this_string to (the text of document 1) as string
if this_string is “” then error “TextWrangler document contains no text.”
if (1 = 1) then
tell application “Chipmunk Basic”
activate
set the contents of application “Chipmunk Basic” to (this_string & return)
DoScript (“run”)
end tell
end if
on error error_message number error_number
if the error_number is not -128 then
display dialog error_message buttons {“Cancel”} default button 1
end if
end try
end tell
Thank you.
Tom
Posted by Jim on Sunday, August 5th, 2012 at 10:54 PM.
Hi Tom,
As an alternative, if you use the command line version of Chipmunk Basic, you could simply use the Run or Run in Terminal commands in BBEdit’s #! menu. To do so, specify the path to the command line basic interpreter as the first line your program, like this: