DEV Community

Discussion on: Some of the Best Coding Tools Aren't Coding Tools

Collapse
 
darksmile92 profile image
Robin Kretzschmar

Sure I will let you know!
I used TextExpander some time now and did not manage to get a REST API call working with pure JavaScript (cause on windows shell is not supported sadly).
Just out of curiousity: did you manage to do something in pure JS?
I can embed momentJS and stuff, but did not find a standalone JS library that does not use the "window" object, since this is not available in TextExpander.

Thread Thread
 
craser profile image
Chris Raser

I'm on a Mac, so I tend to write stand-alone shell/ruby scripts, and then just call them from TextExpander.

I haven't tried it, but implementing a pure JavaScript REST call within TextExpander should be possible, provided TextExpander's runtime supports XMLHttpRequest, and you set it to make synchronous calls, rather than asynch.

Now you've piqued my interest. Gonna have to play with this a little bit when I have time. I'll let you know what I find. :)

Thread Thread
 
darksmile92 profile image
Robin Kretzschmar

That's my issue at the moment, I did not manage to use XMLHttpRequest yet. I will also try to solve this and will keep you posted :)