I'm sorry but Javascript doesnt mean that you can use all Methods/Objects.
JDownloader doesn't know about Application.currentApplication. That only works in MacOS Script Editor.
does the terminal notifier work?
try in shell
__________________
JD-Dev & Server-Admin
|