[solved] Using script to rename file, then tag file, will not update the tag.data file
Posted: 10 Jun 2021 16:13
Using script to rename file, then tag file, even if the "Save changes to disk immediately" was checked, the tag.data file will not update the tag. And, the following separete tag operation will all fail(could not update the tag.data fiile), even if it is for other files.
If I want to force update(write) the tag.data file, I have to click "save settings" menu or exit XYplorer.
For example:
If I want to force update(write) the tag.data file, I have to click "save settings" menu or exit XYplorer.
For example:
Code: Select all
"test1"
$file = get('SelectedItemsPathNames');
$file = renameitem('temp01.txt', $file); // work
tagitems('tag', 'test1', $file); // not work
// it's ok
"test2"
$file = get('SelectedItemsPathNames');
tagitems('tag', 'test2', $file);
$file = renameitem('temp02.txt', $file);
// test1, then test3, not work
// test2, then test3, it's ok
"test3"
$file = get('SelectedItemsPathNames');
tagitems('tag', 'test3', $file);