Last active
November 24, 2021 13:49
-
-
Save nadar/1a029083ec03ac2f8de9becf91eba867 to your computer and use it in GitHub Desktop.
remote.jsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var flyo = { | |
fn: function() { alert("hoi") }, | |
xml: "https://www.w3schools.com/xml/note.xml", | |
getData: function() { | |
var rawxml = app.doScript("do shell script \"curl 'remoteCode'\"".replace("remoteCode", this.xml), ScriptLanguage.APPLESCRIPT_LANGUAGE); | |
return new XML(rawxml); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment