So something like this?
"C:\\Program Files (x86)\\Arts\\products\\ARTSClient\\bin\\ARTSCmdTool.app>ARTSCmdTool.exe -query PATFILES \"Patientennummern = \" " & $nr
Thank you very much for your responds, I will try it tomorrow and let you know wether it worked.
Are you sure there needs to be ">" between ".app" and "ARTSCmdTool"?
Also, any path that has spaces in it should be surrounded in quotes.
Can you post the whole calculation that you put in the Send Event script step, or give us a screenshot.