Page 1 of 1

Lua script for deleting file on Mac OS X

Posted: 22 Jul 2015 12:53
by Kuzu
I'm using this script but it won't delete when I select a file in the playlist/queue and hold Ctrl + Alt + D

https://gist.github.com/ifischer/686890164cadacdf6726

I put it inside VLC's package content inside the extensions folder as it says but it doesn't work. The file is a .txt file rather than .lua. I tried renaming it but it didn't work either.

Re: Lua script for deleting file on Mac OS X

Posted: 23 Jul 2015 11:48
by mederi
Hotkeys in Lua scripts (.lua not .lua.txt) are not supported since VLC-2.1. You can edit the provided script to replace

Code: Select all

function activate() vlc.var.add_callback( vlc.object.libvlc(), "key-pressed", key_press ) end
with

Code: Select all

function activate() delete() end
Now if you want to delete a file, you need to click in VLC menu.
Then you could have a simple dialog box, a control panel with two buttons [ Delete ] and [ Play next ] for easier process of clearing your list of files. Just check similar scripts lying around here.

Re: Lua script for deleting file on Mac OS X

Posted: 05 Jan 2017 23:07
by 147852369
Hello!
I have good news. Here's a new topic about this problem: https://forum.videolan.org/viewtopic.ph ... 68#p451830

I started to develop a VLC Media Player based on JavaFX. You can delete files directly from hard drive also on Windows - without crashing! Please test and notify me about your experience in the new thread.