Revision: 29735
          http://sourceforge.net/p/bibdesk/svn/29735
Author:   hofman
Date:     2025-10-17 08:54:22 +0000 (Fri, 17 Oct 2025)
Log Message:
-----------
override setScriptingName: in last import group instead of setting script error 
in a superclass

Modified Paths:
--------------
    trunk/bibdesk/BDSKGroup+Scripting.m

Modified: trunk/bibdesk/BDSKGroup+Scripting.m
===================================================================
--- trunk/bibdesk/BDSKGroup+Scripting.m 2025-10-17 08:44:48 UTC (rev 29734)
+++ trunk/bibdesk/BDSKGroup+Scripting.m 2025-10-17 08:54:22 UTC (rev 29735)
@@ -286,14 +286,8 @@
 @implementation BDSKMutableGroup (Scripting)
 
 - (void)setScriptingName:(NSString *)newName {
-    if ([self isNameEditable]) {
-        [self setName:newName];
-        [[self undoManager] 
setActionName:NSLocalizedString(@"AppleScript",@"Undo action name for 
AppleScript")];
-    } else {
-        NSScriptCommand *cmd = [NSScriptCommand currentCommand];
-        [cmd setScriptErrorNumber:NSReceiversCantHandleCommandScriptError];
-        [cmd setScriptErrorString:@"Cannot set property of group."];
-    }
+    [self setName:newName];
+    [[self undoManager] setActionName:NSLocalizedString(@"AppleScript",@"Undo 
action name for AppleScript")];
 }
 
 @end
@@ -354,6 +348,12 @@
     [cmd setScriptErrorString:@"Cannot modify publications of last import 
group."];
 }
 
+- (void)setScriptingName:(NSString *)newName {
+    NSScriptCommand *cmd = [NSScriptCommand currentCommand];
+    [cmd setScriptErrorNumber:NSReceiversCantHandleCommandScriptError];
+    [cmd setScriptErrorString:@"Cannot set property of group."];
+}
+
 @end
 
 #pragma mark -

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



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to