Hi all, I'm working on an applescript that is at the end of a filemaker script that exports a container field in a foundset to the desktop. I'd like a user to be able to click a button which exports the images to the desktop, opens a new email with Mac Mail and then opens a dialog box where the user can simply click and add the newly exported images to the newly made email.
I'm almost there with it. I'll include the script and the applescript below.
I get the error codes "The variable themessage is not defined" and then "unknown error - 2753" after the email has been created and you have clicked the attachments to add to the email.
tell application "Mail"
set frontWindow to window
set newMessage to make new outgoing message
set theAttachment to choose file with multiple selections allowed
make new attachment at theMessage