Page 1 of 1

Script command to edit the catalog please!

Posted: 23 Jul 2024 15:53
by highend
Can you please! add a new script command that lets us edit catalog entries?

E.g. catalogedit()

I have about 120 file and folder entries (90% of them are folders) currently and due to structural network changes I need to change a local path (drive letter) to a UNC-path instead.

I can't do this manually for such an amount of entries (error prone and too time consuming)^^

Even something simple would work (for me) atm (and it could be a non-offical command until it is fully fledged out)...
Like: An import catalog script command that is able to read the content of a .txt file that we've filled with a catalogexport() before (and edit the .txt file with a normal editor before reading it back with the import command)...

Re: Script command to edit the catalog please!

Posted: 23 Jul 2024 19:42
by klownboy
I recently updated some drives and associated catalog paths and have more to do. So, I can see where something along these lines would be helpful land a logical request. :tup:

Re: Script command to edit the catalog please!

Posted: 23 Jul 2024 20:13
by autocart
+1 :tup:
I had this wish from day one of becoming aware of the catalog.

Re: Script command to edit the catalog please!

Posted: 27 Jul 2024 15:34
by admin
Sorry, I don't have time for this right now.

Re: Script command to edit the catalog please!

Posted: 28 Jul 2024 09:52
by admin
Had an idea. The next beta will have this new function: cataloglocation([index=-1], [location]) Should do.

Re: Script command to edit the catalog please!

Posted: 28 Jul 2024 10:31
by highend
Thanks! Will immediately report if it works :appl:

Re: Script command to edit the catalog please!

Posted: 28 Jul 2024 11:59
by highend
Works great so far!

There is only a very minor issue: When doing (successful) path replacements the menu entry
File - Settings Special - Save Catalog doesn't show the * in front of it

So users should be aware that the catalog needs to be saved afterwards (if not done via the script itself)

Re: Script command to edit the catalog please!

Posted: 28 Jul 2024 18:40
by admin
:tup: