pfannkuchen2001
Aktives Mitglied
Thread Starter
- Dabei seit
- 17.02.2006
- Beiträge
- 2.600
- Reaktionspunkte
- 48
Hi,
ich habe hier ein python script mit dem ich Fotos in Fotos importieren möchte.
hier die Problemstelle:
das ganze funktioniert scheinbar nicht, weil unter catalina die Fotos app in einer Sandbox läuft. Das ist die Fehlermeldung:
Probiert habe ich dann das hier:
was erstmal den eindruck macht, als ob es funktionieren würde, allerdings bekomme ich nach einer stunde wieder die gleiche fehler meldung. (nachdem ca. 5000 bilder importiert wurden.)
Ich weis nicht so recht weiter, es scheint mir nicht als würde das Python script schuldig sein, sondern eher da an dem Applescript ein Problem zu sein.
Sieht da jemand etwas komisches? Was kann ich tun? Wie finde ich den Fehler?
Hilfe ?!
Gruß und Dank schonmal im Voraus!
ich habe hier ein python script mit dem ich Fotos in Fotos importieren möchte.
hier die Problemstelle:
Python:
import_photo_apple_script = applescript.AppleScript("""on run photo_path
tell application "Photos"
import photo_path with skip check duplicates
end tell
end run""")
das ganze funktioniert scheinbar nicht, weil unter catalina die Fotos app in einer Sandbox läuft. Das ist die Fehlermeldung:
Probiert habe ich dann das hier:
Python:
import_photo_apple_script = applescript.AppleScript("""on run photo_path
set theList to photo_path
set l to {}
repeat with f in theList
set l to l & (POSIX file f)
end repeat
tell application "Photos"
import l with skip check duplicates
end tell
end run""")
was erstmal den eindruck macht, als ob es funktionieren würde, allerdings bekomme ich nach einer stunde wieder die gleiche fehler meldung. (nachdem ca. 5000 bilder importiert wurden.)
Ich weis nicht so recht weiter, es scheint mir nicht als würde das Python script schuldig sein, sondern eher da an dem Applescript ein Problem zu sein.
Sieht da jemand etwas komisches? Was kann ich tun? Wie finde ich den Fehler?
Hilfe ?!
Gruß und Dank schonmal im Voraus!