RhetTbull/PhotoScript

Some videos are exported as XML files not .MOV files

Opened this issue · 0 comments

I avoided the problem by using --photokit.

Regards to Apple Script exporting, upon a 1000 video export, about 20 will be exported as a small plist XML file upon the first attempt.

I looked into the code at

if filename is not None:
# need to find actual filename as sometimes Photos renames JPG to jpeg on export
# may be more than one file exported (e.g. if Live Photo, Photos exports both .jpeg and .mov)
# TemporaryDirectory will cleanup on return
, it seems that there is a filename rename logic, it seems to me that it's likely somehow the Apple Script exported the plist file and it's been mistakenly renamed to .MOV? Maybe we could add some log here or do not delete the TemporaryDirectory to figure out what happened?

Originally posted by @chengguangnan in RhetTbull/osxphotos#1379 (comment)