Copy Apple Photos
COMMENT
Copies Apple photos from the default album to the specified target album.
Target album must exist.
TEXT
Apple

Text
VARIABLES
Set variable
targetAlbum
to
Input
NOTHING
Nothing
PHOTOS
Find
All Photos
where
[{'class': 'filter-property', 'value': 'Album'}, {'class': 'filter-operator', 'value': 'is'}, {'class': 'filter-benchmark', 'value': 'anything'}] Get 1 File



Photos
VARIABLES
Set variable
already
to
Input
SCRIPTING
Count
Items
in
Input

Count
SCRIPTING
If
Input
Condition
NOTHING
Nothing
PHOTOS
Find
All Photos
where
[{'class': 'filter-property', 'value': 'Album'}, {'class': 'filter-operator', 'value': 'is'}, {'class': 'filter-benchmark', 'value': 'anything'}]

Photos
SCRIPTING
Otherwise
VARIABLES
Get
already
SCRIPTING
Get
First Item
from
List

Item from List
MEDIA
Get
Date Taken
from
Image

Date Taken
VARIABLES
Set variable
date
to
Input
SCRIPTING
Show
date
NOTHING
Nothing
PHOTOS
Find
All Photos
where
All the following are true [{'class': 'filter-property', 'value': 'Date Taken'}, {'class': 'filter-operator', 'value': 'is greater than'}, {'class': 'filter-benchmark', 'value': 'Now', 'glyph': '', 'UUID': ''}] [{'class': 'filter-property', 'value': 'Album'}, {'class': 'filter-operator', 'value': 'is'}, {'class': 'filter-benchmark', 'value': 'anything'}]

Photos
SCRIPTING
End If

If Result
SCRIPTING
Repeat with each item in
Input

Repeat Results
MEDIA
Get
Camera Make
from
Image

Camera Make
SCRIPTING
If
Input
Condition
VARIABLES
Get
Repeat Item
SCRIPTING
Otherwise
NOTHING
Nothing
SCRIPTING
End If

If Result
SCRIPTING
End Repeat

Repeat Results
SCRIPTING
Get Content Graph of
Input
PHOTOS
Save
Input
to
targetAlbum

Saved Photo Media
Showcuts