On Dec 13, 2008, at 12:54 PM, gshenaut wrote: >> Do it all in AppleScript. > > But wouldn't you still have to do a "tell app \"bbedit\"" or the > equivalent even if it was all applescript? (As I said, I'm at a loss > in applescript.)
Currently, BBEdit doesn't process apple events while it is running a shell script from its own #! menu. (If you run it from some other source, like the system wide script menu, this technique will work.) > And I also don't know how in applescript to feed the selected text > into the shell command's standard input and then to replace the > selection with the command's standard output. Attached is my take on how to do this. Drop it in ~/Library/ Application Support/BBEdit/Scripts, assign it a keyboard equivalent if you'd like, and then run it. - Jim --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a specific feature request or would like to report a suspected (or confirmed) problem with the software, please email to "[email protected]" rather than posting to the group. -~----------~----~----~----~------~----~------~--~---
Quick Pipe.scpt
Description: Binary data
