Author Topic: ${sourcefilepath} problem  (Read 19957 times)

pncdaspropagandas

  • Contributor
  • Active Member
  • *****
  • Posts: 93
    • View Profile
${sourcefilepath} problem
« on: January 19, 2017, 16:26:02 »
Hi,

I'm having trouble with the  ${sourcefilepath} multitag.

I created a User Defined Command as a Batch Script with:

echo sourcepath = "${sourcepath}"
echo sourcefilepath = "${sourcefilepath}"
pause

Then I select any or multiple files on C:\

When I run the scrit I get:
sourcepath = ""C:\""
sourcefilepath = ""

So is this a bug or did I do something wrong?

Thanks

AlanJB

  • VIP Member
  • *****
  • Posts: 436
  • VERY old Programmer
    • View Profile
Re: ${sourcefilepath} problem
« Reply #1 on: January 19, 2017, 18:20:09 »
I don't believe there is a MultiTag "sourcefilepath"

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4490
    • View Profile
    • Multi Commander
Re: ${sourcefilepath} problem
« Reply #2 on: January 20, 2017, 07:52:35 »
Correct. there is no "sourcefilepath"

http://multicommander.com/docs/multitags

I think maybe you want  ${sourcefocuspath} ??   (Give you the path to the item (file/folder) in focus in the source panel (active panel) )

pncdaspropagandas

  • Contributor
  • Active Member
  • *****
  • Posts: 93
    • View Profile
Re: ${sourcefilepath} problem
« Reply #3 on: January 20, 2017, 11:01:11 »
I see. My bad. I confused it with focusfilepath

Thank you

pncdaspropagandas

  • Contributor
  • Active Member
  • *****
  • Posts: 93
    • View Profile
Re: ${sourcefilepath} problem
« Reply #4 on: January 20, 2017, 11:21:40 »
But then I edit a Quick Launch Button and set

Program Path = C:\Program Files (x86)\Notepad++\notepad++.exe
Program Parameters = ${sourcefocuspath}

I select a file and click on the Quick Launch Button

Notepadd++ warns me with the message:
C:\${sourcefocuspath} doesn't exist. Create it?

It seems that the MultiTag  ${sourcefocuspath} doesn't work on a Quick Launch Button.

On the other hand, on another Quick Launch Button, I use the MultiTag ${sourcepath} and it works fine.

Thanks

Mathias (Author)

  • Administrator
  • VIP Member
  • *****
  • Posts: 4490
    • View Profile
    • Multi Commander
Re: ${sourcefilepath} problem
« Reply #5 on: January 20, 2017, 13:21:06 »
But then I edit a Quick Launch Button and set

Program Path = C:\Program Files (x86)\Notepad++\notepad++.exe
Program Parameters = ${sourcefocuspath}

I select a file and click on the Quick Launch Button

Notepadd++ warns me with the message:
C:\${sourcefocuspath} doesn't exist. Create it?

It seems that the MultiTag  ${sourcefocuspath} doesn't work on a Quick Launch Button.

On the other hand, on another Quick Launch Button, I use the MultiTag ${sourcepath} and it works fine.

Thanks

MultiTags are only for script. not for the QuickLaunchBar..  It has its own tags that are similar to MultiTags but it does not support as much since because of reasons.  But you can call a script command from the quick launch bar.

BUT if you want to change the default editor to notepad++ then you really should change that in Menu > Configuration > FileType Setup and change default editor.
Then when you press the "edit" button/hotkey that editor will be used




pncdaspropagandas

  • Contributor
  • Active Member
  • *****
  • Posts: 93
    • View Profile
Re: ${sourcefilepath} problem
« Reply #6 on: January 20, 2017, 16:09:43 »
Ok, I get it.

Thank you very much. Keep up the excellent work! MC is in my fav program list now!