exclude operation performed by script from action log

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

exclude operation performed by script from action log

Post 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

admin
Site Admin
Posts: 67337
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: exclude operation performed by script from action log

Post 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"!

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: exclude operation performed by script from action log

Post by yusef88 »

you can't undo this command even it is in the action log.delete 0, 0, ":list"
ac.png
To see the attached files, you need to log into the forum.
Last edited by yusef88 on 21 Jul 2022 12:41, edited 1 time in total.

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: exclude operation performed by script from action log

Post by yusef88 »

if skipundo in xys file will it continue after Initialize part?

Code: Select all

"_Initialize"
 skipundo;

"menu-1" 
"menu-2" 

admin
Site Admin
Posts: 67337
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: exclude operation performed by script from action log

Post 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". :)

admin
Site Admin
Posts: 67337
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: exclude operation performed by script from action log

Post 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.

yusef88
Posts: 1148
Joined: 28 Jan 2013 03:50
Location: Windows 8.1 32-bit

Re: exclude operation performed by script from action log

Post 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.

admin
Site Admin
Posts: 67337
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: exclude operation performed by script from action log

Post by admin »

Ah. Then you will have to set it for each subscript.

Post Reply