Good afternoon, On 18/06/09 at 3:33 PM -0700, Tim Gray <tg...@125px.com> wrote:
>Unix scripts for sure are hobbled by the fact they they get zero >information from BBEdit as to what's going on in the editor. I have a >couple scripts that use rsync to sync some websites, etc., but you >could do a lot more if they had access to what file you are currently >editing and what line you were on. I hadn't looked at their (possible) use like that before. If a unix script had access to some of that, then I can see quite a few AppleScripts being replaced with Unix Scripts. The blocking of AppleEvents during the Unix Script run does seem very limiting though. Hmm, I think I ran into that ages ago and just went with AppleScripts instead, so forgot about that limitation. If you have the current characters/lines, file path, etc available in ENV in a unix script, what do you want to do with that info? If the document is not saved, I can't count on the on-disk version being the same, so current selected text ranges would not be reliable. And the text contents are not available via AppleEvents. So, if we could have "information" in ENV for Unix Scripts as well as access to BBEdit through AppleEvents, I can see much greater use for them. But at the same time, I can't think of any examples of anything I might choose a Unix Script for, that I can't also do fairly easily via an AppleScript. In the case of complex unix script, I just use AppleScript as glue to set up environment variables, command arguments, etc. I'm curious to know what current situations Unix Scripts are being used for. Who's using them? Charlie -- Charlie Garrison <garri...@zeta.org.au> PO Box 141, Windsor, NSW 2756, Australia O< ascii ribbon campaign - stop html mail - www.asciiribbon.org http://www.ietf.org/rfc/rfc1855.txt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BBEdit Talk" group. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com 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 "supp...@barebones.com" rather than posting to the group. -~----------~----~----~----~------~----~------~--~---