Jim, thank you. This was a case of so-close-yet-so-far, and I missed the final bit of syntax as much out of fatigue as anything else. You know how it is. I appreciate the boost over that final step. ;-)
But I must admit the dictionary didn’t really help, and probably wouldn’t have before I posted. Despite years of tinkering experience, application AS dictionaries continue to seem rather opaque to me (probably mostly for lack of usage examples). Even looking at the entry now that I know what works, it’s still not at all clear to me. The quizzical description for that parameter (it actually reads: “replace the text to be processed with the results?”) hardly inspired my confidence in that direction … Anyhoo, thanks again. On Oct 27, 2:35 pm, John Delacour <[email protected]> wrote: > At 13:50 -0700 27/10/2010, Paul Ingraham wrote: > > >I just don't seem to know how to convert the stuff on the scratchpad to > >ASCII. > > >on run {input, parameters} > > tell application "BBEdit" > > set wasVisible to visible of scratchpad window > > set contents of scratchpad window to input > > set w to open scratchpad window > > CONVERT TO ASCII text of w ??? > > if not wasVisible then close w > > return contents of scratchpad window > > end tell > >end run > > Look at the dictionary. > > convert to ASCII text of w with replacing target > > JD -- 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>
