Re: Text filter question

2018-01-14 Thread Greg Raven
Yes, it was (and is) executing, it just wasn't working correctly. It works 
better with the trailing hyphen, but it's still clunky. Fortunately, I have 
CodeKit.app as a fallback, and it works great.

On Sunday, January 14, 2018 at 12:31:54 AM UTC-8, lucbress wrote:
>
> Is it made executable?
>
> Op 13 jan. 2018, om 17:44 heeft Greg Raven  > het volgende geschreven:
>
> D’oh! I didn’t read down that far. Thanks, Fletcher!
>
> Sent from my iPhone
>
> On Jan 13, 2018, at 8:13 AM, Fletcher Sandbeck  > wrote:
>
> It looks like JSHint requires a dash to indicate that it should read 
> content from standard input. Many CLI tools read from stdin by default when 
> they don't see a file name specified, but others require - or another 
> parameter to trigger this behavior.
>
> #!/bin/bash
> jshint -
>
> http://jshint.com/docs/cli/#specifying-input
>
> Hope this helps,
>
> [fletcher]
>
>
> On Jan 13, 2018, at 7:32 AM, Greg Raven  
> wrote:
>
> I have three text filters in my BBEdit Text Filters folder. Two work, but 
> one doesn't.
>
> This works:
>
> #!/bin/bash
> csscomb assets/css
>
> This works:
>
> #!/bin/bash
> js-beautify
>
>
> This doesn't:
>
> #!/bin/bash
> jshint
>
>
> If I open the Terminal.app and navigate to a folder containing a 
> JavaScript file, I can type in ...
>
> jshint analytics.js
>
> ... (for example) and get a report as expected. I can also invoke the 
> other two from the command line and have them work as expected.
>
> Any thoughts on what I'm missing?
>
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "sup...@barebones.com " rather than posting to the group.
> Follow @bbedit on Twitter: 
> --- 
> 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 bbedit+un...@googlegroups.com .
> To post to this group, send email to bbe...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/bbedit.
>
>
>
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "sup...@barebones.com " rather than posting to the group.
> Follow @bbedit on Twitter: 
> --- 
> You received this message because you are subscribed to a topic in the 
> Google Groups "BBEdit Talk" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/bbedit/Zf4-iSmq38E/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> bbedit+un...@googlegroups.com .
> To post to this group, send email to bbe...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/bbedit.
>
>
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "sup...@barebones.com " rather than posting to the group.
> Follow @bbedit on Twitter: 
> --- 
> 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 bbedit+un...@googlegroups.com .
> To post to this group, send email to bbe...@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/bbedit.
>
>
> Luc Bressinck
> August Wautersstraat 40C
> B-9140 Temse
> Belgium
> +32 3 771 20 10 
> +32 497 55 08 66
> bressi...@scarlet.be 
>
>
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Text filter question

2018-01-14 Thread Luc Bressinck
Is it made executable?

> Op 13 jan. 2018, om 17:44 heeft Greg Raven  het volgende 
> geschreven:
> 
> D’oh! I didn’t read down that far. Thanks, Fletcher!
> 
> Sent from my iPhone
> 
> On Jan 13, 2018, at 8:13 AM, Fletcher Sandbeck  > wrote:
> 
>> It looks like JSHint requires a dash to indicate that it should read content 
>> from standard input. Many CLI tools read from stdin by default when they 
>> don't see a file name specified, but others require - or another parameter 
>> to trigger this behavior.
>> 
>> #!/bin/bash
>> jshint -
>> 
>> http://jshint.com/docs/cli/#specifying-input 
>> 
>> 
>> Hope this helps,
>> 
>> [fletcher]
>> 
>> 
>>> On Jan 13, 2018, at 7:32 AM, Greg Raven >> > wrote:
>>> 
>>> I have three text filters in my BBEdit Text Filters folder. Two work, but 
>>> one doesn't.
>>> 
>>> This works:
>>> 
>>> #!/bin/bash
>>> csscomb assets/css
>>> 
>>> This works:
>>> 
>>> #!/bin/bash
>>> js-beautify
>>> 
>>> 
>>> This doesn't:
>>> 
>>> #!/bin/bash
>>> jshint
>>> 
>>> 
>>> If I open the Terminal.app and navigate to a folder containing a JavaScript 
>>> file, I can type in ...
>>> 
>>> jshint analytics.js
>>> 
>>> ... (for example) and get a report as expected. I can also invoke the other 
>>> two from the command line and have them work as expected.
>>> 
>>> Any thoughts on what I'm missing?
>>> 
>>> -- 
>>> This is the BBEdit Talk public discussion group. If you have a 
>>> feature request or would like to report a problem, please email
>>> "supp...@barebones.com " rather than posting 
>>> to the group.
>>> Follow @bbedit on Twitter: >> >
>>> --- 
>>> 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 bbedit+unsubscr...@googlegroups.com 
>>> .
>>> To post to this group, send email to bbedit@googlegroups.com 
>>> .
>>> Visit this group at https://groups.google.com/group/bbedit 
>>> .
>> 
>> 
>> -- 
>> This is the BBEdit Talk public discussion group. If you have a 
>> feature request or would like to report a problem, please email
>> "supp...@barebones.com " rather than posting 
>> to the group.
>> Follow @bbedit on Twitter: > >
>> --- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "BBEdit Talk" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/bbedit/Zf4-iSmq38E/unsubscribe 
>> .
>> To unsubscribe from this group and all its topics, send an email to 
>> bbedit+unsubscr...@googlegroups.com 
>> .
>> To post to this group, send email to bbedit@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/bbedit 
>> .
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "supp...@barebones.com " rather than posting to 
> the group.
> Follow @bbedit on Twitter:  >
> --- 
> 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 bbedit+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to bbedit@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/bbedit 
> .

Luc Bressinck
August Wautersstraat 40C
B-9140 Temse
Belgium
+32 3 771 20 10 
+32 497 55 08 66
bressinck@scarlet.be



-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Text filter question

2018-01-13 Thread Greg Raven
D’oh! I didn’t read down that far. Thanks, Fletcher!

Sent from my iPhone

> On Jan 13, 2018, at 8:13 AM, Fletcher Sandbeck  wrote:
> 
> It looks like JSHint requires a dash to indicate that it should read content 
> from standard input. Many CLI tools read from stdin by default when they 
> don't see a file name specified, but others require - or another parameter to 
> trigger this behavior.
> 
> #!/bin/bash
> jshint -
> 
> http://jshint.com/docs/cli/#specifying-input
> 
> Hope this helps,
> 
> [fletcher]
> 
> 
>> On Jan 13, 2018, at 7:32 AM, Greg Raven  wrote:
>> 
>> I have three text filters in my BBEdit Text Filters folder. Two work, but 
>> one doesn't.
>> 
>> This works:
>> 
>> #!/bin/bash
>> csscomb assets/css
>> 
>> This works:
>> 
>> #!/bin/bash
>> js-beautify
>> 
>> 
>> This doesn't:
>> 
>> #!/bin/bash
>> jshint
>> 
>> 
>> If I open the Terminal.app and navigate to a folder containing a JavaScript 
>> file, I can type in ...
>> 
>> jshint analytics.js
>> 
>> ... (for example) and get a report as expected. I can also invoke the other 
>> two from the command line and have them work as expected.
>> 
>> Any thoughts on what I'm missing?
>> 
>> -- 
>> This is the BBEdit Talk public discussion group. If you have a 
>> feature request or would like to report a problem, please email
>> "supp...@barebones.com" rather than posting to the group.
>> Follow @bbedit on Twitter: 
>> --- 
>> 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 bbedit+unsubscr...@googlegroups.com.
>> To post to this group, send email to bbedit@googlegroups.com.
>> Visit this group at https://groups.google.com/group/bbedit.
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter: 
> --- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "BBEdit Talk" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/bbedit/Zf4-iSmq38E/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> bbedit+unsubscr...@googlegroups.com.
> To post to this group, send email to bbedit@googlegroups.com.
> Visit this group at https://groups.google.com/group/bbedit.

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Re: Text filter question

2018-01-13 Thread Fletcher Sandbeck
It looks like JSHint requires a dash to indicate that it should read content 
from standard input. Many CLI tools read from stdin by default when they don't 
see a file name specified, but others require - or another parameter to trigger 
this behavior.

#!/bin/bash
jshint -

http://jshint.com/docs/cli/#specifying-input 


Hope this helps,

[fletcher]


> On Jan 13, 2018, at 7:32 AM, Greg Raven  wrote:
> 
> I have three text filters in my BBEdit Text Filters folder. Two work, but one 
> doesn't.
> 
> This works:
> 
> #!/bin/bash
> csscomb assets/css
> 
> This works:
> 
> #!/bin/bash
> js-beautify
> 
> 
> This doesn't:
> 
> #!/bin/bash
> jshint
> 
> 
> If I open the Terminal.app and navigate to a folder containing a JavaScript 
> file, I can type in ...
> 
> jshint analytics.js
> 
> ... (for example) and get a report as expected. I can also invoke the other 
> two from the command line and have them work as expected.
> 
> Any thoughts on what I'm missing?
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a 
> feature request or would like to report a problem, please email
> "supp...@barebones.com" rather than posting to the group.
> Follow @bbedit on Twitter:  >
> --- 
> 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 bbedit+unsubscr...@googlegroups.com 
> .
> To post to this group, send email to bbedit@googlegroups.com 
> .
> Visit this group at https://groups.google.com/group/bbedit 
> .

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.


Text filter question

2018-01-13 Thread Greg Raven
I have three text filters in my BBEdit Text Filters folder. Two work, but 
one doesn't.

This works:

#!/bin/bash
csscomb assets/css

This works:

#!/bin/bash
js-beautify


This doesn't:

#!/bin/bash
jshint


If I open the Terminal.app and navigate to a folder containing a JavaScript 
file, I can type in ...

jshint analytics.js

... (for example) and get a report as expected. I can also invoke the other 
two from the command line and have them work as expected.

Any thoughts on what I'm missing?

-- 
This is the BBEdit Talk public discussion group. If you have a 
feature request or would like to report a problem, please email
"supp...@barebones.com" rather than posting to the group.
Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To post to this group, send email to bbedit@googlegroups.com.
Visit this group at https://groups.google.com/group/bbedit.