Hey Daniel,

On Sep 15, 2011, at 16:15, Daniel wrote:
> Hi Christopher, thank you so much for the scripting help!

You bet.

> You'll have to forgive my questions here, as Applescript is completely 
> foreign to me.

No worries.

> My goal is to avoid having to open the Terminal to run JSLint, so your 
> solution to use the BBEdit worksheet is more along the lines of what I'm 
> looking for.

Okay.

> However, I ran the script as you have it written, and it didn't do much. It 
> just opened a new document with the text "cat '/ path/to/file' | jslint"

Not just a document, but a worksheet.  Typing Command-Return will execute the 
shell command and dump the output into the worksheet.
> Also, what are other options for where to output it? Something like an 
> alert/dialog would be much more desirable than creating a new text document 
> every time I run the script.

I don't program with Javascript and jslint, so I have no idea what your output 
looks like.  If you'll send me a sample off-list I'll have a better handle on 
what you're dealing with.

A dialog is very likely doable.

A file in the temp directory that you can just close to throw away is doable.

--
Best Regards,
Chris

-- 
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>

Reply via email to