Jump to content
Salesforce and other SMB Solutions are coming soon. ×

Import images from cameras on MacOS with FileMaker


Recommended Posts

  • Advertiser
Monkeybreadsoftware

We got a few new ImageCapture functions to import images from camera on Mac. So if you can import in Photos.app or Image Capture.app, you can also import them in FileMaker.

CameraImport.jpg

For version 10.4 of our MBS Plugin we got a new function ImageCapture.SetItemsAddedScript to define which script to trigger when a new picture is there. So you first use ImageCapture.OpenDevice to connect to camera, then use ImageCapture.RequestEnableTethering to ask for tethering, later call ImageCapture.RequestTakePicture to take a picture. Once the picture is taken, you get the script triggered and there you get a JSON like this:

[
  {
    "orientation" : 0,
    "parentFolder" : "LocalCache",
    "UTI" : "public.image",
    "raw" : true,
    "name" : "IMG_0008.CR2",
    "creationDate" : "2020-08-27 13:30:38 +0000",
    "duration" : 0,
    "inTemporaryStore" : true,
    "largeThumbnail" : {
      "height" : 120,
      "width" : 160
    },
    "metadata" : {
      "PixelHeight" : 4000,
      "{Exif}" : {
        "DateTimeOriginal" : "2020:08:27 15:30:38",
        "DateTimeDigitized" : "2020:08:27 15:30:38"
      },
      "PixelWidth" : 6000
    },
    "fileSize" : 26156488,
    "device" : "Canon EOS 760D",
    "thumbnail" : {
      "height" : 120,
      "width" : 160
    },
    "sidecarFiles" : [

    ],
    "locked" : false,
    "userData" : {

    },
    "modificationDate" : "2020-08-27 13:30:38 +0000"
  }
]

Pick the file name and use ImageCapture.Download to get the image file from the camera and store it in FileMaker. If you like, use ImageCapture.RequestDeleteFiles to delete the file.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

Terms of Use