For files on an FTP server, SetAttr without arguments opens a window allowing permissions to be read and set using CHMOD or with rwx set and clear checkboxes for owner, group and world. Can these operations be performed using arguments to the command? The documentation for SetAttr refers only to the read-only, archive, system and hidden attributes useful for local/Windows filesystems.
I'd very much like buttons or keyboard shortcuts to run commands of one or more of the types:[ul][li]SetAttr CHMOD=644[/li]
[li]SetAttr Attr=o+gw[/li]
[li]SetAttr SetOwnerAttr=rx ClearWorldAttr=w[/li][/ul]Does something similar exist, or should this be a feature request?
SetAttr has a CHMOD argument which can be given further parameters.
Looks like it has been overlooked in the documentation so I'm not sure exactly what you can do with it, but give your first suggestion a try. It might work already.
I've just dropped GPSoft a quick note so they know it's missing from the docs.
Just a note on the command arguments. As far as I'm aware the manual and help file is up-to-date. But it appears that SetAttr omitted the CHMOD argument. I'll update that in the next release.
If you are in doubt of exactly what command arguments a specific command takes, you can open the Opus CLI and type . So , for example, with SetAttr...
Thank you, nudel and greg. I think I must have found the CHMOD argument with the Button Editor in the past, but forgotten about it because I couldn't persuade it to do anything.
Knowing that the argument exists is a start, but it still can't be used without knowing the syntax for its (required) parameters! I've tried CHMOD=755, CHMOD 755, CHMOD="755", with no effect. Specifying a value of 755 for CHMOD in the window opened by SetAttr (no arguments) works as expected. If the argument is implemented but not documented, could you please let me know where I'm going wrong?
They've fixed it in DOpus 10! I just made a button that does:
[ul][li]SetAttr CHMOD 754[/li][/ul]
and it instantly changed the selected file to -rwxr-xr--