Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
50 user(s) are online (38 user(s) are browsing Forums)

Members: 2
Guests: 48

emeck, Swisso, more...

Support us!

Headlines

 
  Register To Post  

It's a small script I named "Move or Delete," created by AI
Just popping in
Just popping in


See User information
Hello everyone,

A while ago, I accidentally deleted a VideoVortex playlist I had just customized.

That's when I wondered, why isn't there a "move to trash" function in Workbench?

Until now, I hadn't used the trash; I simply deleted everything.

I'm not a programmer, but with the help of AI, I finally achieved what I wanted, and I'd like to share it with you.

It's a small script I named "Move or Delete" that's inserted into the context menu. It opens a prompt asking you whether you want to move the file to the trash or delete it.

I've also included the option to go to the trash and empty it within this prompt.

A notification appears when you move a file to the trash.

This script is written in French, but you are free to modify it according to your language and also in relation to the notification.

Here is a demonstration video and how to integrate it into the context menu.

If you have any questions or suggestions for improvement, please let me know.





download Move or delete

Go to top
Re: It's a small script I named "Move or Delete," created by AI
Just can't stay away
Just can't stay away


See User information
@skynet

Are you using SFS? There's a hidden directory called ".recycled"

Go to top
Re: It's a small script I named "Move or Delete," created by AI
Just popping in
Just popping in


See User information
@MickJT

Hi MickJT,

No, I use NGFS, which is much more stable than SFS. I haven't had any problems with corrupted files or broken boot systems for a long time now.

In addition, I just finished creating a script with AI help for backups using Time Machine, like on a Mac, but I still need to fine-tune a few things.

Go to top
Re: It
Just can't stay away
Just can't stay away


See User information
@skynet

NGFS also has the option to use a .recycled directory.

Best regards,

Niels

Go to top
Re: It
Just popping in
Just popping in


See User information
@nbache

Hi Nbache,

Okay, thanks for the info. How do you activate it or access it?

Go to top
Re: It
Not too shy to talk
Not too shy to talk


See User information
@skynet
Quote:
skynet wrote:@nbache

Hi Nbache,

Okay, thanks for the info. How do you activate it or access it?


just go to the NGFS volume root directory.
check if a .recycled drawer already exists. if not, just create it.
or just do a
MakeDir .recycled

in the root drawer of the volume.
either you get an "already exists" error or it will be created.

check if files are in there. the .recycled drawer is invisible. you explicitely need to tneter it in shell or the file tool of your choice.

regards...
michael

Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 1 ( 0 members and 1 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project