I'm trying to figure out how (or even if it's possible) to take the contents of a tag – ImageSize, for example – and prefix that with some other string characters.
Essentially I'm trying to use the a file's tag value as a variable, adding additional text to it, then putting the results into some other tag... all in one line.
Is that possible?
Thanks
I believe I have stumbled upon (a) solution:
Although what I'm doing is somewhat specific to Swift, the end result seemed to be to use -if $SomeTag -SomeOtherTag<${SomeTag} (... then add my additional text)
You don't need the -if. If SomeTag doesn't exist then SomeOtherTag won't get written (unless you use the -f or -m option).
- Phil
Ah... good to know.
Thank you!