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.
/AUTO opens the window only if there is any output. /CLOSE adds a close gadget to the window The combination of /AUTO/CLOSE allows the user to close the window at any time. It will open again when there is more output. /WAIT waits at the end of the script until the user closes the window. Without /WAIT the window disappears immediately when the script ends.
There is no time option. You can only trick it. Which means you can remove /WAIT from the window spec and add a wait instruction to the end of your script.
In the same way x/y/w/h are always absolute coordinates. There is no way to open the window relative to the screen size. All you can do is to adjust the coordinates to your preferred screen size.
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!
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.
Isn't such a line already in the contextmenues? Here there is an entry, I am pretty sure it is default.
Quote:
Speaking of the context menu, is it possible to make text bold?
I couldn't find anything in the Documentation
Quote:
It's a query option that gives me the choice of moving the item to the trash or deleting it.
nice idea!
Quote:
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!
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
9.AmigaOS4:>dir VolumeName:.recycled
the files might have other characters attached at the end, e.g. VideoVortexFavourites.1$ABC then copy the file to RAM:
9.AmigaOS4:>copy clone VolumeName:.recycled/FileName to RAM:
Quote:
Now I have another problem: I'd like to get "the name of the element I'm moving or deleting" in my query.
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.
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 am not sure I understand. I don't think it is dynamically possible to change a ContextMenu entry. i.e. I don't think one can right click on a file RAM:Testfile1.txt and then the Context menu shows "Delete TestFile1.txt! right in the menu and that it changes the menu entry accordingly to the file name. But someone might know better.
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'm curious - you're backing up what from where to where?
It sounds like you are mixing up CLI scripts with ARexx scripts.
In my experience, anytime I start needing to be building requesters (requestchoice, requeststring, etc), keeping track of data and interacting with the a user, then it almost always is better to just write the whole thing in ARexx.
Call any command line things using "address command +LINE" and read/deal with any redirected output or errors from within the ARexx script.
Maybe it would be better to describe more exactly what you are trying to do?
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
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.