Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
45 user(s) are online (29 user(s) are browsing Forums)

Members: 1
Guests: 44

emeck, more...

Support us!

Headlines

Forum Index


Board index » All Posts (skynet)




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


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: AmigaOS 4 Monthly Roundup - April 2026
Just popping in
Just popping in


@AmigaOldskooler


Hi AmigaOldskooler,

Thank you so much for this monthly recap, it's always a pleasure to read and learn new things.

Go to top


Audio output jack connector saturated on the front panel of the Fractal Design Core 2500 tower?
Just popping in
Just popping in


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.

Is this happening to you too?

Go to top


Re: How do I create a stable Amiga installation?
Just popping in
Just popping in


@icbrkr

Great!

I'm happy for you.

Have fun with that awesome X5000.

Go to top


Re: Argument for the shell and rexx script
Just popping in
Just popping in


@thomas

Thanks, Thomas, for your help!

After several hours of trying to adapt the script to work with the context menu, I finally succeeded!

Some incomprehensible things happened, and there were a few scares!

(Yes, several times during my tests, instead of moving the selected file, it moved the entire C directory!)

This allowed me to learn a bit more about the context menu.

I'll share it here, along with all the installation instructions.

Go to top


Re: Argument for the shell and rexx script
Just popping in
Just popping in


Hi Hypex,

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.

Go to top


Re: Argument for the shell and rexx script
Just popping in
Just popping in


Already tried that.

To clarify, it's in the requestchoice section after "Trash / Delete?" to replace "place in the trash or erase?"

With: "Place <FILE> in the trash or erase"

Or is that not possible?

Go to top


Re: Argument for the shell and rexx script
Just popping in
Just popping in


@pjs

Hi Pyjamas,

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

Go to top


Re: Argument for the shell and rexx script
Just popping in
Just popping in


But isn't there a script or something similar that would simply display the name of the selected file in a requester window?

I think there's a way to add it to my script?

My goal is to indicate what is being deleted or moved, even when it's selected.

Go to top


Re: Argument for the shell and rexx script
Just popping in
Just popping in


@Tuvok
Quote:
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.


In my "requestchoice" script

Thank you for your help!


Edited by skynet on 2026/4/4 12:37:17
Go to top


Re: Argument for the shell and rexx script
Just popping in
Just popping in


Hi Thomas,

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!

Go to top


Argument for the shell and rexx script
Just popping in
Just popping in


Hi everyone

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.

Thanks for your help.

Go to top


Re: How do I create a stable Amiga installation?
Just popping in
Just popping in


Hi cbrkr,

I also have an X5000 and it's super stable except sometimes when I'm testing programs. It doesn't crash, it just gets very slow and choppy.

I use the Exorcist program on OS4Depot, a program similar to Force Quit on a Mac. Sometimes I just restart it completely so I'm safe.

I use NGFS for my SSDs; it's super stable and I have no problems with corrupted files.

Before, I used SFS, but I sometimes had file corruption issues.

Also, check the battery; it might be the problem. For now, mine is still the original one.

What version of U-Boot do you have?

A RAM stick could also be the problem; try with just one stick.

Otherwise, I love my X5000.

Go to top


Re: Videovortex
Just popping in
Just popping in


@Gregor

Hi Gregor,

This should work.

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.

Go to top


Re: Amiga OS 4.1 resolution Hz question
Just popping in
Just popping in


Hi, I tested DisplayPort on my Radeon 560 and it's not recognized.

However, Uboot recognizes DisplayPort.

Go to top


Re: How do I contact an OS4Welt forum administrator?
Just popping in
Just popping in


Hi everyone!

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.

Happy holidays to everyone!

Go to top


Re: Power Light goes off
Just popping in
Just popping in


Where did the new firmware come from?

I'd like to know if this firmware version is newer than the one I got some time ago.

Go to top


Re: Power Light goes off
Just popping in
Just popping in


Hi jd324,

Merry Christmas! Which Amiga do you have and which firmware are you referring to?

I have an X5000. Could I have missed something regarding a new firmware update?

Otherwise, I have no idea about your LED problem.

Go to top


Re: How do I contact an OS4Welt forum administrator?
Just popping in
Just popping in


@Maijestro

Hi Maijestro,

Thanks for your help, but I still can't log in and no email is saved when I try to change my password.

Would it be possible for you to ask an OS4Welt administrator to send me an email?

My username is Skynet.

Thanks.

Go to top


resolved. How do I contact an OS4Welt forum administrator?
Just popping in
Just popping in


Hi everyone,

How do I contact an OS4Welt forum administrator?

I tried to change my password and email address, but apparently my account has been deleted?

Thanks for your help.


Edited by skynet on 2025/12/26 17:46:57
Go to top



TopTop
(1) 2 3 4 ... 10 »




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project