```applescript
set theFolder to POSIX path of ((the path to me as text) & "::")
set Controller to run script ("script s" & return & (read alias (POSIX file (theFolder & "/lib/controller.scpt")) as «class utf8») & return & "end script " & return & "return s")

set currentTrack to Controller's getCurrentSong()

set output to item 1 of currentTrack & " - " & item 2 of currentTrack

do shell script "echo " & quoted form of output
```

Set current song to empty string if nothing is playing
user
```applescript
set theFolder to POSIX path of ((the path to me as text) & "::")
set Controller to run script ("script s" & return & (read alias (POSIX file (theFolder & "/lib/controller.scpt")) as «class utf8») & return & "end script " & return & "return s")

set currentTrack to Controller's getCurrentSong()

try
  set output to quoted form of (item 1 of currentTrack & " - " & item 2 of currentTrack)
on error
  set output to ""
end try

do shell script "echo " & output
```
assistant