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.
I've been using this for a while and I'm wondering about the distorted audio?
I'm using a Fractal Design Core 2500 tower for my AmigaOne X5040.
I connected the front panel connector of the tower to the Creative Sound Blaster Audigy FX audio card, using the jack plug. But the audio coming out of the jack is distorted. Why?
But the audio coming out of the headphone jack is distorted.
Yes, I've had the chance to use NGFCheck and I also have ngfsundelete, but I've never tried it!
But I still find it much nicer to have the ability to move files to the Recycle Bin from the context menu.
And I've added two more functions for this user: one to navigate to the Recycle Bin folder and the other to empty the Recycle Bin.
There is indeed a function to empty the Recycle Bin from the menu bar, but the Recycle Bin folder has to be selected to enable the "Empty Recycle Bin" option, which is really inconvenient.
Since there's only one function in the context menu to get rid of a file or anything else, "delete,"
the other day I accidentally deleted a file I had just modified and saved (a favorites list) so I could use it in VideoVortex. I thought it would be nice to add a function below the "delete" function in the context menu so that instead of deleting it, it would be moved to the trash.
I've reinstalled the trash on my SSD (NGFS).
What I'd like now is to be able to replace "Place in the trash or erase?"
with "Place [the name of the item to delete] in the trash or erase?"
To be more specific about the item being deleted.
Here's the script I use to move a file or anything else to the trash.
Setenv choice `RequestChoice "Trash / Delete?" "place in the trash or erase?" "place in the trash|erase|Cancel"`
If $Choice eq "0"
Endif
If $Choice eq "1"
.key FILE/A
Move "<FILE>" "HD0:Trashcan"
Move "<FILE>.info" "HD0:Trashcan"
EndIf
If $Choice eq "2"
delete "<FILE>"
Endif
Isn't such a line already in the contextmenues? Here there is an entry, I am pretty sure it is default.
Yes, just erase! That's a dangerous trick!
I had to rebuild it using the small icons (tbimages).
And the "move to trash" function isn't included in my context menu?
Quote:
Regarding the context menu, is it possible to make text bold? I couldn't find anything about it in the documentation.
Me neither.
Quote:
if your Storage device is formatted in SFS, there might be a hidden ".recycled" folder in the root directory of the disk. You might be able to salvage your files! Open a Shell and
No, my partitions are in NGFS.
Quote:
In the documentation under "Special arguments" I found some arguments which may help. Look for: %s, %n, %o, %O, %f Maybe there is something you use for your purpose.
I'll go see. (The only argument that works well is %f, with my script.)
Quote:
If I'm not mistaken, there's "the title," "the body," "the choice," and I'd like the body to tell me the element I'm deleting.
I saw that you also wrote to me on OS4Welt, thank you so much!
I'll write here instead, since I'm writing in French and using Google Translate. The English translation is more understandable than the German one, I think?
After several attempts, I can't get it to work the way I want.
I've opted for a more practical solution.
In the context menu, I added a line to allow me to move or delete a file, a drawer, or multiple files or folders, etc.
Speaking of the context menu, is it possible to make text bold?
It's a query option that gives me the choice of moving the item to the trash or deleting it.
Yes, I did something stupid the other day!
I was editing a VideoVortex favorites file with 35 entries, I saved it, and then I thought, "I can delete some of these files because I don't need them anymore!"
And I deleted the file I had just saved with my 35 entries #¿?!!# Idiot!
Now I have another problem: I'd like to get "the name of the element I'm moving or deleting" in my query.
I've tried several things, but none of them do what I want.
If I'm not mistaken, there's "the title," "the body," "the choice," and I'd like the body to tell me the element I'm deleting.
I've done several searches using AI and reading, but nothing works.
Does anyone have a solution?
Thanks for your help!
I have one more thing to try; I'll see if I can get what I want!
I use Backup for my backups, so I use Backup.rexx. At the end of the backup, a shell window opens to show if there were any errors, the time, etc.
In the Backup.rexx file, there are arguments for this shell window that end with "Wait". What argument can I use to tell it to close after 5 or 10 seconds?
I wrote a small script to add a function to the context menu to move files or folders directly to the Recycle Bin. The script works as expected, but a shell window opens to show the files being moved.
This shell window opens in the top left corner, and I'd like to have it in the center of the screen or somewhere other than the corner, and also have it close automatically after a certain time.
Download it, install it in Utilities or another folder, and when you click on it, it will ask you to download YT.rexx and install it where it should. Then you search, and it should offer you videos.
You also need to create a redirection file for Emotion or MPlayer in Prefs/Env-archive/AppDir.
I want to thank everyone who helped me recover my OS4Welt account!
A week ago, some of my email accounts were hacked, and I wanted to change my email address on my OS4Welt account. I don't know why my account was blocked.
Now everything is back to normal; I've recovered my OS4Welt account.
Thank you again to everyone on this forum who helped me get my account back.