Revision: 5203
http://skim-app.svn.sourceforge.net/skim-app/?rev=5203&view=rev
Author: hofman
Date: 2009-02-08 12:14:48 +0000 (Sun, 08 Feb 2009)
Log Message:
-----------
add some commented body to email script, if we ever want to use it
Modified Paths:
--------------
trunk/SKPDFDocument.m
Modified: trunk/SKPDFDocument.m
===================================================================
--- trunk/SKPDFDocument.m 2009-02-07 23:43:35 UTC (rev 5202)
+++ trunk/SKPDFDocument.m 2009-02-08 12:14:48 UTC (rev 5203)
@@ -1025,30 +1025,36 @@
if (status == noErr)
mailAppName = [[[(NSURL *)mailAppURL path] lastPathComponent]
stringByDeletingPathExtension];
+ NSString *subject = [self displayName];
+
if ([mailAppName rangeOfString:@"Entourage"
options:NSCaseInsensitiveSearch].length) {
scriptString = [NSMutableString stringWithString:@"tell application
\"Microsoft Entourage\"\n"];
[scriptString appendString:@"activate\n"];
- [scriptString appendFormat:@"set m to make new draft window with
properties {subject:\"%...@\"}\n", [self displayName]];
+ [scriptString appendFormat:@"set m to make new draft window with
properties {subject:\"%...@\"}\n", subject];
[scriptString appendString:@"tell m\n"];
+ //[scriptString appendFormat:@"set content to \"%...@\"\n", body];
[scriptString appendFormat:@"make new attachment with properties
{file:POSIX file \"%...@\"}\n", fileName];
[scriptString appendString:@"end tell\n"];
[scriptString appendString:@"end tell\n"];
} else if ([mailAppName rangeOfString:@"Mailsmith"
options:NSCaseInsensitiveSearch].length) {
scriptString = [NSMutableString stringWithString:@"tell application
\"Mailsmith\"\n"];
[scriptString appendString:@"activate\n"];
- [scriptString appendFormat:@"set m to make new message window with
properties {subject:\"%...@\"}\n", [self displayName]];
+ [scriptString appendFormat:@"set m to make new message window with
properties {subject:\"%...@\"}\n", subject];
[scriptString appendString:@"tell m\n"];
+ //[scriptString appendFormat:@"set contents to \"%...@\"\n", body];
[scriptString appendFormat:@"make new enclosure with properties
{file:POSIX file \"%...@\"}\n", fileName];
[scriptString appendString:@"end tell\n"];
[scriptString appendString:@"end tell\n"];
} else {
scriptString = [NSMutableString stringWithString:@"tell application
\"Mail\"\n"];
[scriptString appendString:@"activate\n"];
- [scriptString appendFormat:@"set m to make new outgoing message with
properties {subject:\"%...@\", visible:true}\n", [self displayName]];
+ [scriptString appendFormat:@"set m to make new outgoing message with
properties {subject:\"%...@\", visible:true}\n", subject];
+ //[scriptString appendFormat:@"set content of m to \"%...@\"\n", body];
[scriptString appendString:@"tell content of m\n"];
[scriptString appendFormat:@"make new attachment at after last
character with properties {file name:\"%...@\"}\n", fileName];
[scriptString appendString:@"end tell\n"];
[scriptString appendString:@"end tell\n"];
+ [scriptString appendString:@"end tell\n"];
}
if (scriptString) {
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit