Mail mit Anhang per Apple Script versenden: Anhang wird nicht eingefügt
Hallo,
ich habe ein Apple Script, mit dem ich eine Mail inklusive Anhang versenden möchte (wird in einem VBA Code aufgerufen, um einen Serienbrief als PDF zu versenden). Es funktioniert auch soweit ganz gut, bis auf die Tatsache, dass der Anhang nicht in die Mail eingebunden wird.
Ich habe das Standard Mail Programm von Apple verwendet.
Das Betriebssystem ist MacOs Ventura 13.1
Hat jemand eine Idee woran das liegen könnte ?
Im Folgenden das Skript das ich verwende.
tell application "Mail"
set NewMail to make new outgoing message with properties {content:"Hello World", subject:"DiesUndDas" , visible:true}
tell NewMail
make new to recipient at end of to recipients with properties {address:"abc@def.de"}
tell NewMail
make new attachment with properties {file name:"/Users/frodo/test.pdf" as alias} at after the last paragraph
end tell
delay 1
end tell
end tell