Hi,
i am trying to attach few images into a mail and send . i got lot of threads which taught me to do that. but i am stuck at inserting a return between each image attachments.
here is my code
the file just selects multiple images and attaches in mail.
set sourceFiles to choose file with multiple selections allowed
tell application "Mail"
set newMessage to make new outgoing message with properties {subject:"My Photos"}
tell newMessage
set visible to true
set sender to "me@xx.com"
set theReturn to "xx@xx.com"
activate
tell content
repeat with sourceFile in sourceFiles
make new attachment with properties {file name:sourceFile} at after the last paragraph
tell application "System Events"
keystroke (key code 124)
keystroke return
end tell
end repeat
end tell
end tell
end tell
i just cant get the keystroke’s to work , what is going wrong? i just want all the images seperated by a line or return.
can someone please help me out.
Model: iMac
AppleScript: 2.1
Browser: Safari 534.30
Operating System: Mac OS X (10.6)