сохранить почтовое вложение из appleScript в Lion

Похоже, что метод сохранения почтового вложения с appleScript не работает при Lion. Предположим, что theAttachment уже является правильным объектом, содержащим, например, прикрепленный JPG, вот что я сделал:

set strPath to (path to pictures folder) as string
save theAttachment in strPath -- leads to the error: "„Mail“ got an error: error in  AppleEvent-Routine." number -10000

save theAttachment in strPath as "test" -- leads to \"test\" can't convert into typ constant" number -1700 from "test" to constant

set fileName to strFileName as alias
save theAttachment in strPath as fileName -- error "The file „Foto-121121.jpg“ wasn't found." number -43 from "Foto-121121.jpg"

А также невозможно создать файл с помощью касания:

set thefullpath to POSIX path of strPath & fileName
do shell script "touch \"" & thefullpath & "\"" -- error "The file „Foto-121121.jpg“ wasn't found." number -43 from "Foto-121121.jpg"

В нескольких источниках, найденных Google, говорится, что упомянутый выше метод хорошо работает в Snow Leopard, но не в Lion. Есть ли обходной путь?

Примечание: я перевел сообщения об ошибках с немецкого здесь, но номера ошибок все те же.

Ответы на вопрос(1)

Ваш ответ на вопрос