Revision: 6693
http://skim-app.svn.sourceforge.net/skim-app/?rev=6693&view=rev
Author: hofman
Date: 2010-08-11 00:33:56 +0000 (Wed, 11 Aug 2010)
Log Message:
-----------
support email through postbox and postboxexpress
Modified Paths:
--------------
trunk/SKMainDocument.m
Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m 2010-08-10 23:46:43 UTC (rev 6692)
+++ trunk/SKMainDocument.m 2010-08-11 00:33:56 UTC (rev 6693)
@@ -1068,7 +1068,7 @@
if (noErr == LSGetApplicationForURL((CFURLRef)[NSURL
URLWithString:@"mailto:"], kLSRolesAll, NULL, &mailAppURL))
mailAppName = [[[(NSURL *)mailAppURL path] lastPathComponent]
stringByDeletingPathExtension];
-
+ mailAppName = @"PostboxExpress";
if ([mailAppName rangeOfString:@"Entourage"
options:NSCaseInsensitiveSearch].length) {
scriptFormat = @"tell application \"Microsoft Entourage\"\n"
@"activate\n"
@@ -1093,6 +1093,16 @@
@"make new mail attachment with properties
{path:\"%...@\"}\n"
@"end tell\n"
@"end tell\n";
+ } else if ([mailAppName rangeOfString:@"PostboxExpress"
options:NSCaseInsensitiveSearch].length) {
+ scriptFormat = @"tell application \"PostboxExpress\"\n"
+ @"activate\n"
+ @"send message subject \"%...@\" attachment \"%...@\"\n"
+ @"end tell\n";
+ } else if ([mailAppName rangeOfString:@"Postbox"
options:NSCaseInsensitiveSearch].length) {
+ scriptFormat = @"tell application \"Postbox\"\n"
+ @"activate\n"
+ @"send message subject \"%...@\" attachment \"%...@\"\n"
+ @"end tell\n";
} else {
scriptFormat = @"tell application \"Mail\"\n"
@"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