Page 1 of 1

Problems with/interesting script issue

Posted: 09 Jul 2023 15:18
by XY fan
I have this short script (thanks to highend? I think):

timestamp , input("Date\Time?",,<datem>);

but when I run it on certain files I get this nonsensical popup:


"Timestamping failed

The selected item(s) might be opened and locked by another application

[file name]"


There is no way that the affected files are opened or locked and I have restarted the computer just in case. I have not run lots of files and there are other files where the script runs just fine.

Any thoughts? Do I need to modify the script? (I am not a 'scripter' but can certainly modify one when I am told what to do)

Re: Problems with/interesting script issue

Posted: 09 Jul 2023 15:33
by highend
They are locked. Maybe a preview handler interfered?

Changing the script wouldn't help

Re: Problems with/interesting script issue

Posted: 09 Jul 2023 16:58
by jupe
One way to investigate the cause was already posted when the script was originally provided.

viewtopic.php?p=197833#p197833

Alternatively, changing the script could help if the Preview Pane was responsible though, because you could temporarily toggle it, or deselect the file.

Re: Problems with/interesting script issue

Posted: 10 Jul 2023 10:08
by XY fan
Ah yes - I remember now. Thanks for the reminder.

When I use Lockhunter the files in question do not come up as locked.

Re: Problems with/interesting script issue

Posted: 18 Jul 2023 18:37
by admin
You say "on certain files". Any pattern?

Re: Problems with/interesting script issue

Posted: 19 Jul 2023 03:46
by XY fan
Not that I can see just now - but I have not tried on dozens. If I find a pattern, I will certainly let you know.