TooTallNate / node-applescript

A Node.js module to easily execute arbitrary AppleScript code on Mac OS X.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Returning an object will give an array of strings for each property

lxsavage opened this issue · comments

An example of this is:

Applescript:
tell application "iTunes" to get properties of current track

Expected result:

{
  name: "SongName",
  artist: "SongArtist",
  album: "SongAlbum",
  ...
}

Actual result:

[
  'name: "SongName"',
  'artist: "SongArtist"',
  'album: "SongAlbum"',
  ...
]