Here is the example (broken down) of the expression for directory names which works on the windows JRiver version but not on mac.
IfElse(
IsEqual([Media Type],Video,0),
If(IsEqual([Media Sub Type],Movie,0),
If(IsEmpty([Name]),,Replace([Name],:,/,)If(IsEmpty([Year],1),,/ /([Year]/))),)
If(IsEqual([Media Sub Type],TV Show,0),
If(IsEmpty([Series]),,Replace([Series],:,/,)\If(IsEmpty([Season],1),,Season [Season])),),
IsEqual([Media Type],Audio,0),
Clean(Replace([Album Artist],:,/,))\Clean(Replace([Album],:,/,))if(IsEmpty([Disc #],1),, [Disc [Disc #]])
)
Everywhere were I try escape (using "/") characters it does not work and just creates a sub directory or break the expression.