Photos and Export settings

Hi

Is there any way to set the exports settings when using AppleScript to export photos? The library entry just says “Export the original files if true, otherwise export rendered jpgs. defaults to false.”

The export sheet in Photos has a number of options like JPEG quality, color profile, and image resolution size, plus a couple of check boxes for metadata.

What settings does the Export command use?