MacCentre
Форум: Mac и Mac OS X
Тема: import image notes to devothink
[Ответить]
cala-nag [18.03.2019 00:31] import image notes to devothink:
Добрый день товарищи.
Придумал себе интересную задачу, которая состоит в том, что бы импортировать заметки из notes в devothink.
Написал скрипт, он работает, но не переносятся изображения, которые хранятся в заметках. Подскажите, как решить данную проблему средствами apple script. Заранее спасибо за помощь в данном вопросе.
Скрипт:
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
tell application "DEVONthink Pro"
set myNote to create record with {type:html, source:myText, name:myTitle} in current group
end tell
end repeat
end te
[Ответить]