I have the following NSAppleScript code that works as part of a loop
that goes through an array to send emails with an attachment:
[emailStriptString setString:[NSString stringWithFormat:@"tell
application \"Mail\"\n set newMessage to make new outgoing message
with properties {subject:\"[EMAIL PROTECTED]", content:\"[EMAIL PROTECTED]" & return}\n tell
newMessage\n set visible to true\n make new attachment with properties
{file name:\"[EMAIL PROTECTED]"} at after last paragraph\n make new to recipient at
end of to recipients with properties {name:\"\", address:\"[EMAIL PROTECTED]"}\n end
tell\n end tell\n", subject_String, body_String, [[email_Array
objectAtIndex:i]objectAtIndex:email_PathTo_Attachment],
recipient_String]];
First question: After Mail starts and creates the emails, I cannot
determine from the email itself if the attachment is "windows-
friendly". That option is checked in the mail program under the Edit-
Attachments menu. However, can one tell from looking at the email
that it is "windows-friendly"?
Second, is there an attachment property that I can add to the above
code to ensure that the attachment is "windows-friendly"?
Thanks,
John
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]