How to use the value of <focitem>

Discuss and share scripts and script files...
paul0
Posts: 137
Joined: 23 Oct 2009 19:26

How to use the value of <focitem>

Post by paul0 »

I tried to open a folder in the list (panel) with a tool called Tag & Rename.

Here is the code. But I get an error message dialog as the attachment when I open the folder d:\songs.

Code: Select all

"Tag && Rename"
  openwith """C:\Program Files (x86)\tag-ren\TagRename.exe"" ""<focitem>""";
I don't know why ""<focitem>"" gives a duplicated path string.

Please advice which xyplorer variable I should use.
To see the attached files, you need to log into the forum.
Last edited by paul0 on 29 Mar 2012 08:00, edited 1 time in total.

paul0
Posts: 137
Joined: 23 Oct 2009 19:26

Re: How to open a folder with Tag & Rename

Post by paul0 »

If I check the value of <focitem> using echo function, it shows the correct value D:\songs

Code: Select all

echo <focitem>

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

Re: How to use the value of <focitem>

Post by admin »

I cannot reproduce your duplicated path string.

paul0
Posts: 137
Joined: 23 Oct 2009 19:26

Re: How to use the value of <focitem>

Post by paul0 »

admin wrote:I cannot reproduce your duplicated path string.
Thanks for testing.

The Tag & Rename is supposed to open an folder item. In order to see the value of focused item,I click it on the file item in the panel, and get similar error as the attached.

Besides, the echo value of <focitem> is correct. Please see the second attachment.
To see the attached files, you need to log into the forum.

paul0
Posts: 137
Joined: 23 Oct 2009 19:26

Re: How to use the value of <focitem>

Post by paul0 »

If focused item is in the tree, the value of <focitem> will get any complaint from the tool.

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

Re: How to use the value of <focitem>

Post by admin »

I tested your script but cannot reproduce the error. How do you run the script?

paul0
Posts: 137
Joined: 23 Oct 2009 19:26

Re: How to use the value of <focitem>

Post by paul0 »

I define a user button with the script.
To see the attached files, you need to log into the forum.

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

Re: How to use the value of <focitem>

Post by admin »

Do you have a screenshot of the script in the user button?

paul0
Posts: 137
Joined: 23 Oct 2009 19:26

Re: How to use the value of <focitem>

Post by paul0 »

here is the screenshot of the user button. The left click has only one script and no script for right click.
To see the attached files, you need to log into the forum.
Last edited by paul0 on 29 Mar 2012 12:22, edited 1 time in total.

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

Re: How to use the value of <focitem>

Post by highend »

@paul0
screenshot of the script in the user button?
A screenshot of the script, that you use, not of the button.
One of my scripts helped you out? Please donate via Paypal

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

Re: How to use the value of <focitem>

Post by admin »

No, I mean the script itself. Click the "Edit..." button and show me what's there.

paul0
Posts: 137
Joined: 23 Oct 2009 19:26

Re: How to use the value of <focitem>

Post by paul0 »

:biggrin:

the script is here.

besides, Tag & Rename is available at http://www.softpointer.com/tr.htm.
To see the attached files, you need to log into the forum.

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

Re: How to use the value of <focitem>

Post by admin »

Thanks. Still no luck. :|

paul0
Posts: 137
Joined: 23 Oct 2009 19:26

Re: How to use the value of <focitem>

Post by paul0 »

admin wrote:Thanks. Still no luck. :|
Thanks for your time. :D

I am still surprised that it works on tree item but not list item. Is there any difference between them?

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

Re: How to use the value of <focitem>

Post by admin »

Idea: try open instead of openwith.

Post Reply