Page 3 of 3

Re: Optimizing Python Script Execution

PostPosted: Wed Jul 24, 2019 3:55 pm
by DaveL17
RogueProeliator wrote:
With Jay on this one... I get the OCD of lining everything up, but sometimes I feel it hard to "match up" if you have similar variable values and names. Like, say, items in a list or a few similar URLs. Unless the variable names are ridiculously long, though, this is just a minor personal preference.

I'm a professional writer by trade and this construction comes very natural to me--we present data in tables a lot, and I find it's easier to read that way.

That's one of the things that I love about Python. There isn't just one way to do it.

Re: Optimizing Python Script Execution

PostPosted: Wed Jul 24, 2019 4:10 pm
by whmoorejr
jay (support) wrote:
our voyage of learning.:


Thank you for the lesson. For a non-programmer that doesn't work in the IT field like myself, I'll take all the help and criticism I can get. I just downloaded PyCharm and I'm hoping that will help me with my future python endeavors.

Re: Optimizing Python Script Execution

PostPosted: Fri Jun 16, 2023 4:39 am
by zoff
jay (support) wrote:
FlyingDiver wrote:
Highly recommend BBEdit. There's a free mode which is all you really need for basic stuff.


+1.

I've owned every version of BBEdit since the early 90's. It's solid and reliable, does what it does very well. Those guys deserve the meager amount they charge.


Is it possible to execute a script directly from BBEdit for testing purposes?
I'm currently copying code from BBEdit and pasting in the Embedded Python script window to test snippets of code. Not ideal.

Re: Optimizing Python Script Execution

PostPosted: Fri Jun 16, 2023 5:00 am
by DaveL17
zoff wrote:
Is it possible to execute a script directly from BBEdit for testing purposes?

Not that I know of. It's possible with much more robust tools like PyCharm, but even that requires jumping through a couple hoops.

You might streamline the process a bit by converting embedded scripts to linked files. Then you could save your changes in BBEdit and run them in Indigo.

Re: Optimizing Python Script Execution

PostPosted: Fri Jun 16, 2023 5:58 am
by zoff
DaveL17 wrote:
zoff wrote:
Is it possible to execute a script directly from BBEdit for testing purposes?

Not that I know of. It's possible with much more robust tools like PyCharm, but even that requires jumping through a couple hoops.

You might streamline the process a bit by converting embedded scripts to linked files. Then you could save your changes in BBEdit and run them in Indigo.


Thanks.

Re: Optimizing Python Script Execution

PostPosted: Thu Jun 22, 2023 7:47 am
by jay (support)
I use a Keyboard Maestro action run from a keyboard shortcut to execute the external script so you don't have to leave BBEdit.