Bonjour.
Dans un script AppleScript pour iPhoto, je cherche a créer des photos en dupliquant un modèle. J'utilise donc la commande "duplicate" de la suite iPhoto. MAIS... cette commande renvoie "missing value" et remet la sélection à {}.
Savez-vous comment récupérer le résultat, c'est à dire la photo nouvellement créée?
Merci beaucoup.
Stef
Mac OS X 10.5.8, iPhoto '06 (7.1.5)
tell application "iPhoto"
set phocom to "Mon test de commentaire (" & (current date) & ")"
set photit to "Mon titre"
set phokwd to "testkw"
set photemp to photo "PqNoPhoto"
set newpho to duplicate photemp to album "Test album"
--set (title of newpho) to photit
--set (comment of newpho) to phocom
--assign keyword string "testkw"
end tell
Dans un script AppleScript pour iPhoto, je cherche a créer des photos en dupliquant un modèle. J'utilise donc la commande "duplicate" de la suite iPhoto. MAIS... cette commande renvoie "missing value" et remet la sélection à {}.
Savez-vous comment récupérer le résultat, c'est à dire la photo nouvellement créée?
Merci beaucoup.
Stef
Mac OS X 10.5.8, iPhoto '06 (7.1.5)
tell application "iPhoto"
set phocom to "Mon test de commentaire (" & (current date) & ")"
set photit to "Mon titre"
set phokwd to "testkw"
set photemp to photo "PqNoPhoto"
set newpho to duplicate photemp to album "Test album"
--set (title of newpho) to photit
--set (comment of newpho) to phocom
--assign keyword string "testkw"
end tell