Revision: 14394
          http://sourceforge.net/p/skim-app/code/14394
Author:   hofman
Date:     2024-07-23 16:23:52 +0000 (Tue, 23 Jul 2024)
Log Message:
-----------
Don't set text for markup note from AppleScript when setting the text is 
disabled

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

Modified: trunk/PDFPage_SKExtensions.m
===================================================================
--- trunk/PDFPage_SKExtensions.m        2024-07-23 16:15:40 UTC (rev 14393)
+++ trunk/PDFPage_SKExtensions.m        2024-07-23 16:23:52 UTC (rev 14394)
@@ -714,7 +714,8 @@
                 [[NSScriptCommand currentCommand] setScriptErrorString:@"New 
markup notes need a selection."];
             } else if (selection) {
                 annotation = [PDFAnnotation newSkimNoteWithSelection:selection 
forType:type];
-                if ([props 
objectForKey:SKPDFAnnotationScriptingTextContentsKey] == nil)
+                if ([props 
objectForKey:SKPDFAnnotationScriptingTextContentsKey] == nil &&
+                    [[NSUserDefaults standardUserDefaults] 
integerForKey:SKDisableUpdateContentsFromEnclosedTextKey] != 2)
                     [props setValue:[selection cleanedString] 
forKey:SKPDFAnnotationScriptingTextContentsKey];
             }
         } else if ([type isEqualToString:SKNInkString]) {

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