Page 1 of 1

Applescript to play videos in folder using vlc

Posted: 20 Apr 2017 01:00
by emmanuelObi
hello,

I am trying to play the videos in a folder using vlc whenever a new video is added to the folder,

This is what i got so far :-
--------------------------------------------------------------------------------------------------
on adding folder items to theAttachedFolder after receiving theNewItems
-- Get the name of the attached folder
-- tell application "VLC" to activate
-- open application "VLC"


set the_files to get every file of theAttachedFolder

tell application "Finder" to open {the_files} using application file "VLC.app"


end adding folder items to
-----------------------------------------------------------------------------------------------

it worked for a while, then when i restarted my computer, it stopped working. Anybody know whats wrong with it?