On Friday, June 02, 2006, at 08:20AM, Kenneth Prager <[EMAIL PROTECTED]> wrote: > >Sorry for being dense but I don't get how to pass the hex string to >the function and then "set the selection to the output of the >function." > >Are you implying that I should be able to invoke this function from >within BBEdit or do I just call this function from another >AppleScript?
BBEdit does support "filters" which are shown in the #! menu. You can prepare a perl file and place it in the correct directory and it will show up. The idea is that the selected text is passed to the filter which then replaces it by writing to standard out. I find it a PITA when the selected text will always be the entire document. But if you wind up selecting the hex strings manually it would be just the ticket. You can also set a preference that asks BBEdit to automatically reload a file from disk whenever the underlying data are changed by some other process. If you do that and make sure the currently visible version of the file is freshly saved you can just execute the perl script and the new version will be displayed. A backup just prior to such a test is HIGHLY recommended. A BBEdit worksheet containing the command for the perl script is a good way to do development and testing. Once you get it prepared you just select the line and ENTER. Almost as good as MPW. -- --> If you are presented a number as a percentage, and you do not clearly understand the numerator and the denominator involved, you are surely being lied to. <-- -- ------------------------------------------------------------------ Have a feature request? Not sure the software's working correctly? If so, please send mail to <[EMAIL PROTECTED]>, not to the list. List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml> List archives: <http://www.listsearch.com/BBEditTalk.lasso> To unsubscribe, send mail to: <[EMAIL PROTECTED]>
