Revision: 12971
http://bibdesk.svn.sourceforge.net/bibdesk/?rev=12971&view=rev
Author: hofman
Date: 2008-03-05 03:50:31 -0800 (Wed, 05 Mar 2008)
Log Message:
-----------
Fix an exception when copying publications in AppleScript.
Modified Paths:
--------------
trunk/bibdesk/BibItem.m
Modified: trunk/bibdesk/BibItem.m
===================================================================
--- trunk/bibdesk/BibItem.m 2008-03-05 11:21:38 UTC (rev 12970)
+++ trunk/bibdesk/BibItem.m 2008-03-05 11:50:31 UTC (rev 12971)
@@ -326,7 +326,9 @@
if ([cmd isKindOfClass:[NSCloneCommand class]]) {
// if this is called from AppleScript 'duplicate', we need to use the
correct macroResolver, as we may be copying from another source
BDSKMacroResolver *macroResolver = nil;
- id container = [[[[cmd arguments] valueForKey:@"ToLocation"]
insertionContainer] objectsByEvaluatingSpecifier];
+ id container = [[[cmd arguments] valueForKey:@"ToLocation"]
insertionContainer];
+ if ([container
respondsToSelector:@selector(objectsByEvaluatingSpecifier)])
+ container = [container objectsByEvaluatingSpecifier];
if ([container isKindOfClass:[NSArray class]]) {
if ([container count] > 1) {
[cmd setScriptErrorNumber:NSArgumentsWrongScriptError];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit