Revision: 17959
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=17959&view=rev
Author: hofman
Date: 2011-06-17 12:14:59 +0000 (Fri, 17 Jun 2011)
Log Message:
-----------
Support Outlook email client
Modified Paths:
--------------
trunk/bibdesk/NSWorkspace_BDSKExtensions.m
Modified: trunk/bibdesk/NSWorkspace_BDSKExtensions.m
===================================================================
--- trunk/bibdesk/NSWorkspace_BDSKExtensions.m 2011-06-17 06:40:30 UTC (rev
17958)
+++ trunk/bibdesk/NSWorkspace_BDSKExtensions.m 2011-06-17 12:14:59 UTC (rev
17959)
@@ -309,6 +309,19 @@
[scriptString appendFormat:@"make new attachment with properties
{file: POSIX file \"%@\"}\n", fileName];
[scriptString appendString:@"end tell\n"];
[scriptString appendString:@"end tell\n"];
+ } else if ([@"com.microsoft.outlook" isCaseInsensitiveEqual:mailAppID]) {
+ scriptString = [NSMutableString stringWithString:@"tell application
\"Microsoft Outlook\"\n"];
+ [scriptString appendString:@"activate\n"];
+ [scriptString appendFormat:@"set m to make new draft window with
properties {subject: \"%@\", visible: true}\n", subject ?: @""];
+ [scriptString appendString:@"tell m\n"];
+ if (receiver)
+ [scriptString appendFormat:@"set recipient to {address: {address:
\"%@\", display name: \"%@\"}, recipient type: to recipient}}\n", receiver,
receiver];
+ if (body)
+ [scriptString appendFormat:@"set content to \"%@\"\n", body];
+ for (NSString *fileName in files)
+ [scriptString appendFormat:@"make new attachment with properties
{file: POSIX file \"%@\"}\n", fileName];
+ [scriptString appendString:@"end tell\n"];
+ [scriptString appendString:@"end tell\n"];
} else if ([@"com.barebones.mailsmith" isCaseInsensitiveEqual:mailAppID]) {
scriptString = [NSMutableString stringWithString:@"tell application
\"Mailsmith\"\n"];
[scriptString appendString:@"activate\n"];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit