Check out these recent threads:
Thanks a lot - apparently I did not search well in the archive. I will
just post a recap here for BBEdit in case some people want to do it as
*Open Script Editor (located in Applications/AppleScript)
*File-> new script
*Paste this (modified from Jean Thioulouse code for TextWrangler on
tell application "BBEdit"
set the_selection to (selection of front window as string)
if (the_selection) is "" then
set the_selection to line (get startLine of selection) of front
window as string
tell application "R"
Save this script into this directory
In BBEdit go to the menu Windows -> Palettes->Scripts
Your script should be visible there, and you can set a key to run it.
R-SIG-Mac mailing list