Sorry for the delayed response here - Google Groups apparently decided not to send me email despite the Email Updates To Me setting, but since John cc'd me on his replies, I thought he was the only who had written back...
On Wednesday, January 16, 2013 2:36:04 PM UTC-5, Rich Siegel wrote: > > On Wednesday, January 16, 2013, Adam Engst <[email protected] <javascript:>> > wrote: > > >The problem is that the AppleScript works fine when run from > >AppleScript Editor, but throws an error when run as a text > >filter from within BBEdit. [...] Any suggestions on how to fix > >this script so I can embed it in a text factory? Thanks! > > Wait. Text *filter*, or text *factory*? > > It's an important difference because while there's a little bit > of flexibility in how text *filter* scripts may be called, a > text *factory* script must conform to a specific calling > convention (because of the runtime requirements of text factories). > > If you can clear that up, I bet someone can give you an informed > and accurate answer. :-) Yes, that seems to be more important than I'd realized. Sorry! What I'm trying to do is create a text _factory_ that does a few standard grep replacements, and then calls something else to do this renumbering (since there's no other way to do the renumbering from within a text factory that I can think of). In the text factory, there are options for AppleScript Filter and Unix Filter, and I naively assumed those meant text _filters_. So while the AppleScript I tweaked originally and Ronald's perl script both work, and Ronald's perl script even works from the Text Filters menu, neither of them can be called from within a text _factory_. So the question becomes, how would such a perl script or AppleScript need to be written to work from within a text _factory_? cheers... -Adam -- -- 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>
