Revision: 6776
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6776&view=rev
Author:   hofman
Date:     2010-09-03 22:46:59 +0000 (Fri, 03 Sep 2010)

Log Message:
-----------
ignore user canceled errors from applescripts run from script menu

Modified Paths:
--------------
    trunk/SKScriptMenu.m

Modified: trunk/SKScriptMenu.m
===================================================================
--- trunk/SKScriptMenu.m        2010-09-02 21:48:14 UTC (rev 6775)
+++ trunk/SKScriptMenu.m        2010-09-03 22:46:59 UTC (rev 6776)
@@ -258,7 +258,7 @@
             NSBeep();
         } else {
             NSAppleEventDescriptor *result = [script 
executeAndReturnError:&errorDictionary];
-            if (result == nil) {
+            if (result == nil && [[errorDictionary 
objectForKey:NSAppleScriptErrorNumber] integerValue] != -128) {
                 NSLog(@"AppleScript file '%@' failed to execute: %@", 
scriptFilename, errorDictionary);
                 NSBeep();
             }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to