Bonjour à tous,
Je débute en Apple Script et j'essaie de faire tourner un script pour copier des notes contenues dans apple note vers Evernote.
J'ai récupéré ce script sur internet mais il ne fonctionne pas:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| tell application "Notes"
set theMessages to every note
repeat with thisMessage in theMessages
set myTitle to the name of thisMessage
set myText to the body of thisMessage
set myCreateDate to the creation date of thisMessage
set myModDate to the modification date of thisMessage
set myFolder to the container of thisMessage
set myFolderName to the name of myFolder
tell application "Evernote"
set myNote to create note with text myTitle title myTitle notebook myFolderName tags ["Apple Notes"]
set the HTML content of myNote to myText
set the creation date of myNote to myCreateDate
set the modification date of myNote to myModDate
end tell
end repeat
end tell |
ça me donne au niveau de la deuxième ligne "every note" :
error "Erreur dans Notes*: Le gestionnaire AppleEvent a échoué." number -10000
J'utilise les notes sur iCloud et je suis sur la dernière version de Mac OSX Catalina (10.15.4)
Est-ce que vous sauriez d'où l'erreur pourrait prévenir ?
Merci d'avance de votre aide.
Bonne soirée
Partager