This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
property imageFiles : {"jpg", "pef", "dng", "jpeg"} | |
on adding folder items to theWatchedFolder after receiving theDetectedItems | |
repeat with theItem in theDetectedItems | |
set theItemPath to POSIX path of theItem | |
set ImageFile to POSIX file theItemPath | |
tell application "System Events" | |
if name extension of theItem is in imageFiles then | |
tell application "Photos" | |
set DestinationAlbumName to "Inbox" |