On 8/20/15 at 10:46 AM, [email protected] (ascarter) wrote:

I'm working on adding some features to a bbpackage for displaying help text in a new document. Ideally I would like to use this feature as specified on the command line:

*--clean* (no short variant)

Piped data will be placed in an untitled document whose state is
initially clean (unmodified) so that if you do not further edit
the data, you can close the document without confirmation.

Can I create a document like this using AppleScript? [...]


Not directly; thus, I recommend using 'do shell script' within your AppleScript so you can take advantage of the "--clean" flag, e.g.
====
tell application "BBEdit"

set someText to "The quick red fox jumped over the lazy brown dog.
"

do shell script "echo '" & someText & "' | /usr/local/bin/bbedit --clean"

end tell
====


Regards,

 Patrick Woolsey
==
Bare Bones Software, Inc.             <http://www.barebones.com/>

--
This is the BBEdit Talk public discussion group. 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>

--- You received this message because you are subscribed to the Google Groups "BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].

Reply via email to