Revision: 14911
          http://sourceforge.net/p/skim-app/code/14911
Author:   hofman
Date:     2025-02-01 18:00:45 +0000 (Sat, 01 Feb 2025)
Log Message:
-----------
return an applescript error message for missing page for new note

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

Modified: trunk/SKMainDocument.m
===================================================================
--- trunk/SKMainDocument.m      2025-01-31 23:10:25 UTC (rev 14910)
+++ trunk/SKMainDocument.m      2025-02-01 18:00:45 UTC (rev 14911)
@@ -1898,6 +1898,7 @@
         PDFPage *page = [sel safeFirstPage];
         if (page == nil || [page document] != [self pdfDocument]) {
             [[NSScriptCommand currentCommand] 
setScriptErrorNumber:NSReceiversCantHandleCommandScriptError]; 
+            [[NSScriptCommand currentCommand] setScriptErrorString:@"No page 
or wrong document for new note."];
         } else {
             annotation = [page newScriptingObjectOfClass:class 
forValueForKey:key withContentsValue:sel ?: contentsValue 
properties:properties];
             if ([annotation respondsToSelector:@selector(setPage:)])

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



_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to