AnsweredAssumed Answered

How to work with "do shell script"? Capturing images with gphoto2.

Question asked by dyb on Feb 13, 2018
Latest reply on Jul 12, 2018 by wedgeman

I wanted to use "gphoto2" and FileMaker to automatically capture photos and import them to my database.

I am able to capture a photo and specify a filename and directory for the captured photo from terminal (macOS 10.13.3).


Everything works fine there.

to do this in terminal i write:


/usr/local/bin/gphoto2 --capture-image-and-download --filename /Users/me/Desktop/Capture/NAME.CR2


When i want to trigger the capture from FileMaker i use "Perform AppleScript" and in "Native Script" i write:


do shell script "/usr/local/bin/gphoto2 --capture-image-and-download --filename /Users/me/Desktop/Capture/NAME.CR2"


The camera is triggered but the files are not saved to the specified folder.

What might be the reason?