Hi, again.
I had a look again today at the drag commands documentation (man sec 11)
" TM_MODIFIER_FLAGS — the modifier keys which were held down when the file got dropped. This is a bitwise OR in the form: SHIFT|CONTROL|OPTION|COMMAND (in case all modifiers were down). "
However, I couldnt' figure this one out.
What I would like to do , is to make the command conditional, so it will do a different thing with the URL holding option and command.
How do I change the code, so it uses a different Variable in these cases ? (for instance, in this case, using a different variable like $TM_LOCAL_URL instead of $TM_REMOTE_URL)
This is the current drag command:
echo -n "<a href="http://%24TM_REMOTE_URL/file_download/%5C%24%7B1:file_id%7D%5C" title="${2:`ruby -e 'print ENV['''TM_DROPPED_FILE'''].gsub(/^(.*/)/,String.new)'`}">${3:$2}</a>"
Also , I tried to modify the code so it strips off the file-extension from the third variable doing the usual TM Transformation, but then I get an Error , gsub complaining.
Thanks again, regards, marios