marta-issues icon indicating copy to clipboard operation
marta-issues copied to clipboard

gadgets array: Marco Parsing Error

Open sublimal opened this issue 3 years ago • 1 comments
trafficstars

Specifying commas to separate array elements for arguments or files in a gadget (as per docs), eg:

        executable "test.sh"
        args ["-s", "argument", "${active.selection.paths}"]
        workingDirectory "${user.home}"

Is syntactically invalid, resulting in error in preferences:

Marco Parsing Error Invalid character: Marco does not use ',' as a separator

image

As far as I can tell this is a documentation issue as the following syntax works, and executes as separate arguments:

        executable "test.sh"
        args ["-s" "argument" "${active.selection.paths}"]
        workingDirectory "${user.home}"

sublimal avatar Jul 04 '22 07:07 sublimal

I also noticed this, the docs state , as separator, while in fact, you need a space.

chrisgrieser avatar Aug 06 '22 00:08 chrisgrieser