Windows-Friendly Attachments
Windows-Friendly Attachments
- Subject: Windows-Friendly Attachments
- From: John MacMullin <email@hidden>
- Date: Wed, 3 Dec 2008 21:50:15 -0700
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:\"%@\", content:\"%@\" & return}\n tell
newMessage\n set visible to true\n make new attachment with properties
{file name:\"%@\"} at after last paragraph\n make new to recipient at
end of to recipients with properties {name:\"\", address:\"%@\"}\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@hidden)
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:
This email sent to email@hidden