Use of RAR archive correctly in subfolders with Hazel

Issue: I am monitoring a nested set of folders in Hazel for any files which do not start with "sec_" . I then securely RAR any matching files with an embedded script which results in files prefixed sec_ and ending .rar The original file is removed on successful RAR completion by the RAR switches chosen.
So far so good. However, the .rar file is *always* created at the top of the monitored folder set, *not* in the subfolder containing the original target file. I can find no combination of rule/ordering which achieves what I want.
Yes I have read the sticky file in the FAQ about subfolders. The problem may stem from RAR thinking that the source directory is the top folder where the script is invoked, not the subfolder descended to.
Please can you assist - screenshots attached.
thanks





So far so good. However, the .rar file is *always* created at the top of the monitored folder set, *not* in the subfolder containing the original target file. I can find no combination of rule/ordering which achieves what I want.
Yes I have read the sticky file in the FAQ about subfolders. The problem may stem from RAR thinking that the source directory is the top folder where the script is invoked, not the subfolder descended to.
Please can you assist - screenshots attached.
thanks




