Revision: 16499
          http://sourceforge.net/p/skim-app/code/16499
Author:   hofman
Date:     2026-09-18 14:57:07 +0000 (Fri, 18 Sep 2026)
Log Message:
-----------
allow setting missing value for text, user name, and interior color of notes in 
AppleScript

Modified Paths:
--------------
    trunk/PDFAnnotation_SKExtensions.m
    trunk/Skim.sdef

Modified: trunk/PDFAnnotation_SKExtensions.m
===================================================================
--- trunk/PDFAnnotation_SKExtensions.m  2026-09-18 14:05:18 UTC (rev 16498)
+++ trunk/PDFAnnotation_SKExtensions.m  2026-09-18 14:57:07 UTC (rev 16499)
@@ -677,7 +677,7 @@
 
 - (id)textContents;
 {
-    return [[NSTextStorage alloc] initWithString:[self string] ?: @""];
+    return [self string] == nil ? nil : [[NSTextStorage alloc] 
initWithString:[self string]];
 }
 
 - (void)setTextContents:(id)text;

Modified: trunk/Skim.sdef
===================================================================
--- trunk/Skim.sdef     2026-09-18 14:05:18 UTC (rev 16498)
+++ trunk/Skim.sdef     2026-09-18 14:57:07 UTC (rev 16499)
@@ -846,8 +846,10 @@
                 description="The type of note.">
                 <cocoa key="type"/>
             </property>
-            <property name="text" code="ctxt" type="rich text"
+            <property name="text" code="ctxt"
                 description="The text of the note. Attributes are ignored.">
+                <type type="rich text"/>
+                <type type="missing value"/>
                 <cocoa key="textContents"/>
             </property>
             <property name="color" code="colr" type="RGBA color"
@@ -866,8 +868,10 @@
                 description="The modification date of a note.">
                 <cocoa key="scriptingModificationDate"/>
             </property>
-            <property name="user name" code="UsrN" type="text"
+            <property name="user name" code="UsrN"
                 description="The user name of the creator of a note.">
+                <type type="text"/>
+                <type type="missing value"/>
                 <cocoa key="scriptingUserName"/>
             </property>
             <property name="font name" code="FntN" type="text"
@@ -898,8 +902,10 @@
                 description="The raw data for the image of an anchored note.">
                 <cocoa key="scriptingImageData"/>
             </property>
-            <property name="interior color" code="IClr" type="RGBA color"
+            <property name="interior color" code="IClr"
                 description="The fill color of a circle, box, or line.">
+                <type type="RGBA color"/>
+                <type type="missing value"/>
                 <cocoa key="scriptingInteriorColor"/>
             </property>
             <property name="line width" code="LnWd" type="real"

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