Thank you John, Your script worked very well!
Steve On Dec 10, 3:24 pm, John Delacour <[email protected]> wrote: > At 10:44 -0800 10/12/09, outis wrote: > > >I have placed the following shell script into the "unix scripts" > >folder: > > >#!/bin/bash > > >textutil -fontsize 12 -convert rtf ~/Desktop/*.html > > >As you can see, it simply takes all the .html files on the Desktop and > >converts them to .rtf. > > >My questions is this: How can I change this so that I can have it > >convert the file I am working on in BBEdit to .rtf and then save it to > >the Desktop (or anywhere for that matter)? > > You could do it with an AppleScript script: > > tell application "BBEdit" > set _file to the file in the front window as Unicode text > set _path to quoted form of POSIX path of _file > do shell script "textutil -fontsize 12 -convert rtf " & _path > end tell > > 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.
