rebol file autoexecution in mac osx

Started by Eno on 18-Feb-2011/10:09:42-8:00
Is it possible to run rebel script directly by clicking the file on MAC osx , without the trouble of opening the view or code terminal first ?
Yes, if you insert a shebang line at the beginning, making it run like a bash script: #!/usr/local/bin/rebol -qs Change the path to rebol to whatever your path is. Then in the terminal or from Finder, set the permissions to 744: chmod 744 my-script.r so the script becomes executable to yourself. In Finder, set the "Open With:" to Terminal. If you want to run it from terminal, go to the script directory and type: ./my-script.r
Henrik, do you mind if I add that to re-bol.com?
No, go head. :-)
Thanks!
Thanks, it worked. But the terminal window showed up everytime while executing the file, how to run without it like .pyw file?
That's an anomaly of the current Mac version. I don't think there's a way around it.
Solved with DropScript: http://www.wsanchez.net/software/
MaxV, have you used DropScript? Which Mac OS versions does it work on? Very cool find :)
Ask to TsunKuo Kuo on Facebok, he is the Mac expert

Reply