Problems with/interesting script issue

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
XY fan
Posts: 246
Joined: 24 Mar 2022 10:58
Location: Windows 11 225% scaling on 3840 x 2400 screen

Problems with/interesting script issue

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

highend
Posts: 14925
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Problems with/interesting script issue

Post by highend »

They are locked. Maybe a preview handler interfered?

Changing the script wouldn't help
One of my scripts helped you out? Please donate via Paypal

jupe
Posts: 3446
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Problems with/interesting script issue

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

XY fan
Posts: 246
Joined: 24 Mar 2022 10:58
Location: Windows 11 225% scaling on 3840 x 2400 screen

Re: Problems with/interesting script issue

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

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

Re: Problems with/interesting script issue

Post by admin »

You say "on certain files". Any pattern?

XY fan
Posts: 246
Joined: 24 Mar 2022 10:58
Location: Windows 11 225% scaling on 3840 x 2400 screen

Re: Problems with/interesting script issue

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

Post Reply