Page 1 of 1
exclude operation performed by script from action log
Posted: 19 Jul 2022 02:38
by yusef88
hi, every single item rename will appear in the action log which it is not desired, can we prevent that?
Code: Select all
foreach($item, <allitems <crlf>>, <crlf>, "e") {
$item = regexreplace($item, "^\.+", "");
$base = gpc($item, "base");
$new = regexreplace("$base", "\u0640|^[-|_]+|[-|_]+$", "");
$new = trim(regexreplace("$new", "\s{2,}", " "));
if not ($new == $base) {renameitem("$new", $item, 1+4)}
}
script tends to clean names from extra spaces and symbols
Re: exclude operation performed by script from action log
Posted: 21 Jul 2022 10:33
by admin
Not possible ATM, but I could add something to scripting to skip the action log. But be aware that this means "No Undo"!
Re: exclude operation performed by script from action log
Posted: 21 Jul 2022 12:15
by yusef88
you can't undo this command even it is in the action log.
delete 0, 0, ":list"
ac.png
Re: exclude operation performed by script from action log
Posted: 21 Jul 2022 12:40
by yusef88
if skipundo in xys file will it continue after Initialize part?
Code: Select all
"_Initialize"
skipundo;
"menu-1"
"menu-2"
Re: exclude operation performed by script from action log
Posted: 21 Jul 2022 13:26
by admin
yusef88 wrote: ↑21 Jul 2022 12:15
you can't undo this command even it is in the action log.
delete 0, 0, ":list"
ac.png
Sure, that's why it's called "permanent".

Re: exclude operation performed by script from action log
Posted: 21 Jul 2022 13:26
by admin
yusef88 wrote: ↑21 Jul 2022 12:40
if skipundo in xys file will it continue after Initialize part?
Code: Select all
"_Initialize"
skipundo;
"menu-1"
"menu-2"
Uhm, not sure. Try it and tell me.
Re: exclude operation performed by script from action log
Posted: 22 Jul 2022 03:40
by yusef88
admin wrote: ↑21 Jul 2022 13:26
yusef88 wrote: ↑21 Jul 2022 12:40
if skipundo in xys file will it continue after Initialize part?
Uhm, not sure. Try it and tell me.
it's reset to "don't skip" when the initialize part is done.
Re: exclude operation performed by script from action log
Posted: 22 Jul 2022 09:32
by admin
Ah. Then you will have to set it for each subscript.