Hello
I am trying to write a script that will take a selected file and create an email to the set of people with a set body of text as the content and one of my work signatures. Everything seems to be working fine except that the signature disappears when the attachment is added to the mail! Any ideas why? I have only just started learning Applescript so there will probably be some heinous errors!
Thanks
tell application "Finder"
set sub_name to name of item 1 of (get selection)
set attach_file to get selection as alias
end tell
tell application "Mail"
set bour_mail to make new outgoing message with properties {visible:true, subject:sub_name}
set art_font to "Verdana"
set the_sig to signature "Example Sig"
tell bour_mail
make new to recipient with properties {address:"xxx.xxx.com, xxx.xxx.com"}
make new cc recipient with properties {address:"xxx.xxx.com, xxx.xxx.com"}
set the content to "hello etc etc"
set font of content to art_font
set size of content to (12)
set message signature to the_sig
make new attachment with properties {file name:attach_file}
end tell
end tell