thanks for this nice plugin!
I use it to call a batch file that resamples my hi-res wave files.
However, I noted a problem: the $Directory$ variable is not correct.
I drop the file "D:\My Documents\My Music\Pink.wav"
and the variables are:
$Directory$: D:\My Documents
$Name$: Pink
$Type$: wav
$File$: D:\My Documents\My Music\Pink.wav
Notice the missing "My music" directory
Command:
OnDropAction=[!log "Hey you dropped the file: $Directory$ - $Name$ - $Type$, or as i like to say $File$"]
thanks for this nice plugin!
I use it to call a batch file that resamples my hi-res wave files.
However, I noted a problem: the $Directory$ variable is not correct.
I drop the file "D:\My Documents\My Music\Pink.wav"
and the variables are:
$Directory$: D:\My Documents
$Name$: Pink
$Type$: wav
$File$: D:\My Documents\My Music\Pink.wav
Notice the missing "My music" directory
Command:
OnDropAction=[!log "Hey you dropped the file: $Directory$ - $Name$ - $Type$, or as i like to say $File$"]
Can you advise me?
I'm sorry for a bit of a late answer, i will look into this later when i have the time
This is probably just a small oversight on my side, but won't $File$ still work for you?
I might be wrong. If i am, please expand a bit and post some more code if possible, it makes it much easier to help
Thanks for the bug report, i will fix it when i have the time!
thanks for your attention! I now use $file$ but in my command file (which is called upon drop) I have to disassemble it because I need the path.
Code of the plugin is:
@echo off
setlocal ENABLEDELAYEDEXPANSION
rem Take the cmd-line, remove all until the first parameter
set "params=!cmdcmdline:~0,-1!"
set "params=!params:*" =!"
set count=0
rem Extract path
for %%a in (!params!) do (
set filepath=%%~dpa
)
cd %filepath%
... etc...
Last edited by jsmorley on January 29th, 2017, 2:00 pm, edited 1 time in total.
Reason:Edited to use [code] tags.
This does not seem to allow the actual "drag" of any file.extension from say like the desktop to a meter that is a drive widget e.g. a meter that links to an external drive?
The gist I got from the first post is that is what is meant to be made possible.
There are many ways to be different - there is only one way to be yourself - be amazing at it
The law of averages says what it means; even if you get everything right, you will get something wrong. Therefore; self managing error trapping initiates another set of averages - amongst the errors, some of them will not be errors, instead those instances will appear to be "luck". One cannot complain of the 'appearance' of 'infinite regress of causation', even if it does not have a predictable pattern, only that it requires luck to achieve.
This does not seem to allow the actual "drag" of any file.extension from say like the desktop to a meter that is a drive widget e.g. a meter that links to an external drive?
The gist I got from the first post is that is what is meant to be made possible.
If you only want to get the file path itself then you can set the Action= Path, then you won't need a Path to the end directory.
Sorry for late answer
Edit:
Seems you were right, there were some spookyness in the functions
Download the latest version and apply my suggested changes and it should work fine
Last edited by theAzack9 on February 5th, 2017, 11:00 pm, edited 1 time in total.
thanks for this nice plugin!
I use it to call a batch file that resamples my hi-res wave files.
However, I noted a problem: the $Directory$ variable is not correct.
I drop the file "D:\My Documents\My Music\Pink.wav"
and the variables are:
$Directory$: D:\My Documents
$Name$: Pink
$Type$: wav
$File$: D:\My Documents\My Music\Pink.wav
Notice the missing "My music" directory
Command:
OnDropAction=[!log "Hey you dropped the file: $Directory$ - $Name$ - $Type$, or as i like to say $File$"]