On Mon, 17 Aug 2009 09:49:56 +0100, Carlton Gibson <[email protected]> wrote: > On 17 Aug 2009, at 09:36, Maarten Sneep wrote: > >> >> On Mon, 17 Aug 2009 09:14:44 +0100, Carlton Gibson wrote: >> >>> You can use AppleScript from within your shell script to query BBEdit >>> for the information you need. >> >> No, you can't. BBEdit does not process apple events while a unix >> command >> is running. Trying to do so will result in a timeout error for the >> osascript command, as BBEdit never replies. > > I'm just learning all this, as I need exactly the same kind of > functionality that was asked for, but running the example I gave below > in the terminal works exactly as expected. Can you give an example > that should work but doesn't, 'cause as I say I'm just learning but > I've not had any problems.
It does work from the terminal, because it isn't BBEdit that is calling the script. As soon as you install that script in BBEdit's #! menu, you will have yourself an infinite loop, or rather a race condition. Since the OP was asking about filters (I think), he intends to run from the #! menu, and will run into trouble. Of course, not running as a filter, but as a script instead may be the right answer. Maarten --~--~---------~--~----~------------~-------~--~----~ 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. -~----------~----~----~----~------~----~------~--~---
