On 13 dec 2008, at 22:56, Doug McNutt wrote: > 2) It is possible to send AppleEvents to BBEdit from a running shell > script. The tool is osascript along with its cousin osacompile. > Using osascript with a here document ( << redirection) you can ask > BBEdit to "find" and "copy" or report selected stuff for access by > the running shell script.
Yes, from a shell script, that isn't run from BBEdit itself. BBedit will not process AppleEvents it receives while it is busy with a shell script (invoked as a unix filter or unix shell script. Be careful with this method. #!/bin/sh # the next line will never return when this script is run as a unix script straight from BBEdit # press cmd-. to break out of the infinite loop. osascript -e 'tell application "BBEdit" to quit' ## end script 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. -~----------~----~----~----~------~----~------~--~---
