On 13 nov. 2011, at 15:31, Ryan Wilcox wrote: [snip]
> Like so: > > osascript /Users/rwilcox/bin/path_to_frontmost_project.applescript > > The "first" project document actually means "first by frontmost > order". Be somewhat careful with this. If you use this in a shell script called from the #! menu in BBedit, then you will get a deadlock. BBEdit does not process AppleEvents while running a shell script, so calling osascript will never return to the shell. It will work if this script is called from outside BBEdit, or from a do script command within AppleScript. Best, Maarten -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. 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 feature request or would like to report a problem, please email "[email protected]" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>
