JMichaelTX

Results 6 comments of JMichaelTX

> Here's a crude mock-up: > > ![image](https://user-images.githubusercontent.com/588825/46220118-307d9200-c317-11e8-81fe-5aaad1aea501.png) @mklement0, I really like your suggestion. IMO, it is essential for all users to be able to quickly see the pedigree of...

> I didn't have much luck with AppleScript, but JXA (JavaScript) definitely worked: @retrography , any ideas on how to get the text contents of the front most document? I...

To provide more info, VSC with Code Runner seems to work fine otherwise using the `currentApplication()` object: ```javascript #!/usr/bin/env osascript -l JavaScript var app = Application.currentApplication(); app.includeStandardAdditions = true; var...

@johnelm , thanks for the quick response. OK that solves my issue. And now I have been able to install your node-jxa, so this works: ![image](https://user-images.githubusercontent.com/11052885/39017144-1365594a-43e8-11e8-9075-ec0a1a087d64.png)

> I think what's happening there is that Application.currentApplication() is returning an Application object when you run it from within vscode (and thus vscode is the active app), even though...

@johnelm > You can get both of these, plus the missing JS language support, by treating your JXA scripts as regular Javascript: Thanks, John. I really appreciate your help. I...