Search  Users  Rules 
Forgot your password?
Pages: 1
Using macros as parameters for external action, Using macros as parameters for external action
I don't know how to use a macro to pass a message property as a parameter to a external action:

If I try program.exe %From, it doesn't seem to pass the sender as a parameter. The string "%From" is received instead.

Does anyone know how to do this?

Thank you.
Is a known bug, it won't work, I don't know whgether it has been fixed in the latest beta.

However, there's a workaround.

Use the action 'Export message to plain text file', save to the file 'C:\action.bat' (or whatever path/name you prefer as long as the extension is .bat or .cmd (what OS are you using?))
Use as template something like: program.exe %From
As the next action ru external program c:\action.bat

This will do what you want. Remember you need to execute the actions in the proper order (top down), first the exporting afterwards the external action.
I'm just a user of The Bat! I don't work for Ritlabs.
Pages: 1
Users browsing this topic (1 guests)