AppleScript: Return name of current item playing in VLC


if application "VLC" is running then
    tell application "VLC"
        if playing then
            return name of current item
        else
            return "No track playing"
        end if
    end tell
else
    return "VLC not running"
end if

Leave a Reply

Your email address will not be published. Required fields are marked *