richie5um / TextBar-Recipes

TextBar Recipes
369 stars 35 forks source link

Timeout for scripts? #62

Closed bcjordan closed 5 years ago

bcjordan commented 5 years ago

Most of my scripts work well, but I have a single-line long-running script (15-20 seconds) that works well in terminal, but only outputs a . on the text-bar.

Is there a default timeout for the one-line scripts? Would making it a full recipe possibly make it work?

richie5um commented 5 years ago

A long running script shouldn't be a problem. But, the TextBar item won't show anything new until the entire script has completed - the '.' is the default text to show before a script has completed for the first time. There may be something in your script that is causing TextBar problems. If you open 'Console.app' and search for TextBar, you may be able to figure it out.

There is an alternative approach to showing data in TextBar that may be more suitable for you - it creates a web listener in TextBar, and then your external script can send data directly to it (TextBar shows the data whenever it is sent - so you can update as your script runs). You'll need to figure out a way to run your script though - you could use a different TextBar item to do that, but in itself don't output anything.

It may be over complicating things, but, this is how to do it...

image1 image2

That then looks like this...

image3

On Mon, 14 Oct 2019, at 3:38 AM, Brian Jordan wrote:

Most of my scripts work well, but I have a single-line long-running script (15-20 seconds) that works well in terminal, but only outputs a . on the text-bar.

Is there a default timeout for the one-line scripts? Would making it a full recipe possibly make it work?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/richie5um/TextBar-Recipes/issues/62?email_source=notifications&email_token=AAG5OGOF6X3U5HJVSYPQGFTQOPLQ5A5CNFSM4JAJ5NK2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HRPMRMA, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG5OGIY5MYGFE3CIKKSRVDQOPLQ5ANCNFSM4JAJ5NKQ.

bcjordan commented 5 years ago

Thanks for the info, will close this!

richie5um commented 5 years ago

Let me know how you resolve your issue - so I know for the future :)

On Thu, 17 Oct 2019, at 3:52 AM, Brian Jordan wrote:

Thanks for the info, will close this!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/richie5um/TextBar-Recipes/issues/62?email_source=notifications&email_token=AAG5OGMATALRL5CU2CXGR43QO7HOHA5CNFSM4JAJ5NK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBOSDCI#issuecomment-542974345, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG5OGJFZ6DJW5D4YRXHGGLQO7HOHANCNFSM4JAJ5NKQ.