Skip to content

Instantly share code, notes, and snippets.

@nadar
Last active November 24, 2021 13:49
Show Gist options
  • Save nadar/1a029083ec03ac2f8de9becf91eba867 to your computer and use it in GitHub Desktop.
Save nadar/1a029083ec03ac2f8de9becf91eba867 to your computer and use it in GitHub Desktop.
remote.jsx
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