JSON Helper – How to Paste Information from JSON Helper

applescriptnumbers

I'm able to fetch JSON data using JSON Helper and see the results in Script Editor, under Results. I'm not sure what I would use next in AppleScript to copy those results so I can paste it into a program such as Numbers.

tell application "JSON Helper"
    set myRecord to fetch JSON from "http://www.nfl.com/liveupdate/scores/scores.json"
    return myRecord
end tell

Best Answer

You can use the set the clipboard to command.

tell application "JSON Helper"
    set myRecord to fetch JSON from "http://www.nfl.com/liveupdate/scores/scores.json"
    set the clipboard to (make JSON from myRecord)
end tell