I am trying to get a apple script to run exiftool form within Filemaker. I have most of it working but discovered a problem with spaces. I am working on a Mac using FileMaker 12.
This is the script line. If any of the fields have words followed by a space only the first word is put into the tag. All of tags are working the same.
Any suggestions would be appreciated.
Roger
Example: If $Where contains Lexington, Kentucky then only Lexington, will be written to the Location tag.
Perform AppleScript [ Calculated AppleScript: "do shell script \"exiftool -overwrite_original_in_place -Keywords=" & $KeyWord & " -Description=" & $Description & " -Headline=" & $Event & " -Created=" & $When & " -Location=" & $Where & " " & $Path & " | pbcopy\"" & ΒΆ ]
In AppleScript, you should use the "quoted form of" any argument which may contain characters with special meanings on the command line (like spaces).
- Phil