Page 1 of 2

renameitem odd behavior?

Posted: 05 Oct 2017 00:10
by Dustydog
This line of code (which renames a parent folder using the base name of the selected file) will run if the <curitem> is a text file or jpg…

Code: Select all

renameitem(gpc(,"base"), ".", "4","-001");
…but it will not run, "Access Denied", if the <curitem> is a music or movie file, though it works fine if you do the same command loaded with $variables and then de-sel[]; everything.

Any idea why? Threw me a bit as I tested the script I was working on with a text file.

***

I wonder if this is related to my problem with XY not letting go of a media file as I pass them to another program in the usual gui fashions, like a media tagger - a problem I mentioned a bit ago and told Don to give up on?

Re: renameitem odd behavior?

Posted: 05 Oct 2017 00:20
by highend
Tested with "Ellie Goulding - Love Me Like You Do.mp3" in a folder called "music",
"music" gets renamed accordingly...

What does e.g. LockHunter say to such a folder, that should be renamed?

Re: renameitem odd behavior?

Posted: 05 Oct 2017 01:29
by Dustydog
Stepping through that single line to the point where it says "Access Denied", with the folder to be renamed also open in a Windows Explorer window, LockHunter says it's clear. I find the whole thing very odd.

Re: renameitem odd behavior?

Posted: 05 Oct 2017 01:37
by highend
Was that file previewed (by XY), processed (by a CFA) or anything like that before?

Re: renameitem odd behavior?

Posted: 05 Oct 2017 22:53
by Dustydog
XY went through some restarts. I even did a reboot. (What's a CFA again?) And no, I don't believe I did any previews with them as I was intending on only using them to pull out metadata for a test script, but I hadn't gotten that far yet; I was only testing renameitem as I was going to combine some of the filename and some metadata to a parent folder rename, but I only tested a simple rename-from-child.

Didn't have preview pane open, no informational columns except size and count.

VLC is set as my default media program for both...? Only real background programs I have running that affect files are basic Windows antivirus (Win 10, Creator's, current mainstream patches), MalwareBytes, and "Everything" run as an Admin (lets go of external drives better, in my experience, than as a service, if you kill it first).

Are you on Win 10?

Running a Lenovo ThinkPad, which has been quite a stable machine. Files are on an external SSD which has always worked reliably and is my general work disk.

Baffles me that it'd be only for more complex media types. Do have MediaInfo installed, but it wasn't used on the files yet.

Re: renameitem odd behavior?

Posted: 05 Oct 2017 22:59
by highend
I would have disabled the antivirus and malwarebytes stuff to make sure they don't interfere

I tried Win 10 for ~3 months and was so disappointed, that I went back to my beloved
Windows Server 2012 R2 U3...

Re: renameitem odd behavior?

Posted: 05 Oct 2017 23:09
by Dustydog
It's the size column. When I remove it, it shows clean.

Please fix, oh exalted developer, even if it isn't everybody.

Re: renameitem odd behavior?

Posted: 05 Oct 2017 23:10
by admin
Works fine here. Cannot repro the issue.

Re: renameitem odd behavior?

Posted: 05 Oct 2017 23:10
by Dustydog
And yes, the script works without size column showing.

Re: renameitem odd behavior?

Posted: 05 Oct 2017 23:11
by Dustydog
It is, on my part, completely reproducible.

Re: renameitem odd behavior?

Posted: 05 Oct 2017 23:11
by Dustydog
Any debugging code possible?

Re: renameitem odd behavior?

Posted: 05 Oct 2017 23:12
by Dustydog
I like my blasted size column.

Re: renameitem odd behavior?

Posted: 05 Oct 2017 23:14
by Dustydog
This is definitely the problem I was having passing media files to renamer or tagger programs.

Re: renameitem odd behavior?

Posted: 05 Oct 2017 23:16
by Dustydog
ARGH! Locked again with no size column. Killing anti-V and Everything though it shows XY as the locking culprit.

Re: renameitem odd behavior?

Posted: 05 Oct 2017 23:20
by Dustydog
What does it seems to be double clicking up, then going back down. Showed clean on restart at first, position remembered, then when went up and down, showed locked by XY when focused.