applescript to play videos in vlc
on adding folder items to this_folder after receiving these_items
    tell application "VLC"
        set thePlaylist to "file:///Users/Smokestack/Desktop/For Vlc" -- substitute with your own actual folder path to the folder action folder following the format “file:///“
        OpenURL thePlaylist
    end tell
end adding folder items to