Another ridiculously easy question that apparently I cannot solve myself. :-/
I have the canonical "Hello World" program in a window:
#!/usr/bin/newlisp (println "hello world")
I can run this by Select All followed by Execute Selection Inserting Result easily enough, but I have spent some time looking for a more straightforward Run or Execute command that just needs one keystroke, but with no success. I may be bringing a BBEdit-way of looking at things...
Another ridiculously easy question that apparently I cannot solve myself. :-/
I have the canonical "Hello World" program in a window:
#!/usr/bin/newlisp (println "hello world")
I can run this by Select All followed by Execute Selection Inserting Result easily enough, but I have spent some time looking for a more straightforward Run or Execute command that just needs one keystroke, but with no success. I may be bringing a BBEdit-way of looking at things...
Check the Shell Script bundle. What you are looking for is in there.
Regards,
Aparajita www.aparajitaworld.com
"If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoylibrary.com
On 2006-07-27, at 04:56, Aparajita Fishman wrote:
Check the Shell Script bundle. What you are looking for is in there.
Ah, thanks, I see how it works now. I had started to make a Run Script command, but I had read the first sentence of chapter 10 of the manual too quickly:
Commands are scripts interpreted by bash or the interpreter specified at the top using shebang notation (e.g. #!/usr/bin/ruby).
so I was trying:
#!/usr/bin/newlisp "$TM_FILEPATH"
to execute the window's text but I should have used:
/usr/bin/newlisp "$TM_FILEPATH"
- silly, eh? ;-)
Ah, thanks, I see how it works now. I had started to make a Run Script command, but I had read the first sentence of chapter 10 of the manual too quickly:
Commands are scripts interpreted by bash or the interpreter specified at the top using shebang notation (e.g. #!/usr/bin/ruby).
so I was trying:
#!/usr/bin/newlisp "$TM_FILEPATH"
to execute the window's text but I should have used:
/usr/bin/newlisp "$TM_FILEPATH"
The first command in the Shell Script bundle is Run Script (Command- R), which runs the entire file, in which case the shebang #!/usr/bin/ newlisp (without $TM_FILEPATH) should remain at the top of the file.
Regards,
Aparajita www.aparajitaworld.com
"If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoylibrary.com