theophanemayaud / video-simili-duplicate-cleaner

https://theophanemayaud.github.io/video-simili-duplicate-cleaner/
GNU General Public License v3.0
53 stars 5 forks source link

Apple Photos: get name of video not from file but from apple script #54

Closed theophanemayaud closed 2 years ago

theophanemayaud commented 2 years ago

Works like this :

tell application "Photos"
    set selMedia to (get media items whose id contains "AEA0BA51-2AED-48E8-A5E7-4EFD36A9508B")
    return {(get location of (item 1 of selMedia)), (get filename of (item 1 of selMedia))}
end tell

NB: permission must be asked within the Plist file, see #11 where permission is also needed for adding to albums

theophanemayaud commented 2 years ago

closed by 85cc0ca735b57edbf7d4bf7a09c4a1acbd29dac6