Revision: 6689
http://skim-app.svn.sourceforge.net/skim-app/?rev=6689&view=rev
Author: hofman
Date: 2010-08-10 21:19:47 +0000 (Tue, 10 Aug 2010)
Log Message:
-----------
add support for sending email using Mailplane
Modified Paths:
--------------
trunk/SKMainDocument.m
Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m 2010-08-10 17:25:53 UTC (rev 6688)
+++ trunk/SKMainDocument.m 2010-08-10 21:19:47 UTC (rev 6689)
@@ -1090,6 +1090,15 @@
[scriptString appendFormat:@"make new enclosure with properties
{file:POSIX file \"%...@\"}\n", fileName];
[scriptString appendString:@"end tell\n"];
[scriptString appendString:@"end tell\n"];
+ } else if ([mailAppName rangeOfString:@"Mailplane"
options:NSCaseInsensitiveSearch].length) {
+ scriptString = [NSMutableString stringWithString:@"tell application
\"Mailplane\"\n"];
+ [scriptString appendString:@"activate\n"];
+ [scriptString appendFormat:@"set m to make new outgoing message with
properties {subject: \"%...@\"}\n", subject];
+ [scriptString appendString:@"tell m\n"];
+ //[scriptString appendFormat:@"set content to \"%...@\"\n", body];
+ [scriptString appendFormat:@"make new mail attachment with properties
{path: \"%...@\"}\n", fileName];
+ [scriptString appendString:@"end tell\n"];
+ [scriptString appendString:@"end tell\n"];
} else {
scriptString = [NSMutableString stringWithString:@"tell application
\"Mail\"\n"];
[scriptString appendString:@"activate\n"];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit