Revision: 27233
http://sourceforge.net/p/bibdesk/svn/27233
Author: hofman
Date: 2022-01-17 10:03:25 +0000 (Mon, 17 Jan 2022)
Log Message:
-----------
rename variable
Modified Paths:
--------------
trunk/bibdesk/BibItem+Scripting.m
Modified: trunk/bibdesk/BibItem+Scripting.m
===================================================================
--- trunk/bibdesk/BibItem+Scripting.m 2022-01-17 09:58:22 UTC (rev 27232)
+++ trunk/bibdesk/BibItem+Scripting.m 2022-01-17 10:03:25 UTC (rev 27233)
@@ -575,7 +575,7 @@
NSString *field = nil;
NSInteger start = 0, end = 0;
NSMutableIndexSet *indexes = nil;
- NSArray *linkedfiles = nil;
+ NSArray *linkedFiles = nil;
if ([doc isDocument] == NO) {
[command setScriptErrorNumber:NSReceiversCantHandleCommandScriptError];
@@ -653,8 +653,8 @@
}
if ([field isEqualToString:BDSKLocalFileString]) {
- linkedfiles = [self localFiles];
- NSInteger count = [linkedfiles count];
+ linkedFiles = [self localFiles];
+ NSInteger count = [linkedFiles count];
if (count == 0)
return nil;
if (start < 0)
@@ -673,9 +673,9 @@
}
if (indexes) {
[indexes addIndexesInRange:NSMakeRange(start, end + 1 - start)];
- linkedfiles = [linkedfiles objectsAtIndexes:indexes];
+ linkedFiles = [linkedFiles objectsAtIndexes:indexes];
} else if (start > 0 || end < count - 1) {
- linkedfiles = [linkedfiles subarrayWithRange:NSMakeRange(start,
end + 1 - start)];
+ linkedFiles = [linkedFiles subarrayWithRange:NSMakeRange(start,
end + 1 - start)];
}
}
@@ -693,15 +693,15 @@
location = [location stringByExpandingTildeInPath];
else if ([location isAbsolutePath] == NO) // or should we use the
papers folder?
location = [[([doc basePath] ?: NSHomeDirectory())
stringByAppendingPathComponent:location] stringByStandardizingPath];
- NSArray *paperInfos = [NSArray arrayWithObject:[NSDictionary
dictionaryWithObjectsAndKeys:self, BDSKFilerPublicationKey, location,
BDSKFilerNewPathKey, [linkedfiles firstObject], BDSKFilerFileKey, nil]];
+ NSArray *paperInfos = [NSArray arrayWithObject:[NSDictionary
dictionaryWithObjectsAndKeys:self, BDSKFilerPublicationKey, location,
BDSKFilerNewPathKey, [linkedFiles firstObject], BDSKFilerFileKey, nil]];
[[BDSKFiler sharedFiler] movePapers:paperInfos forField:field
fromDocument:doc options:BDSKAutoFileOptionInitial
actionName:NSLocalizedString(@"AppleScript",@"Undo action name for
AppleScript")];
- if (linkedfiles)
- return [linkedfiles valueForKey:@"URL"];
+ if (linkedFiles)
+ return [linkedFiles valueForKey:@"URL"];
else
return [self localFileURLForField:field];
- } else if (linkedfiles) {
- [[BDSKFiler sharedFiler] autoFileLinkedFiles:linkedfiles
fromDocument:doc check:check actionName:NSLocalizedString(@"AppleScript",@"Undo
action name for AppleScript")];
- return [linkedfiles valueForKey:@"URL"];
+ } else if (linkedFiles) {
+ [[BDSKFiler sharedFiler] autoFileLinkedFiles:linkedFiles
fromDocument:doc check:check actionName:NSLocalizedString(@"AppleScript",@"Undo
action name for AppleScript")];
+ return [linkedFiles valueForKey:@"URL"];
} else {
[[BDSKFiler sharedFiler] autoFileItems:[NSArray arrayWithObjects:self,
nil] forField:field fromDocument:doc check:check
actionName:NSLocalizedString(@"AppleScript",@"Undo action name for
AppleScript")];
return [self localFileURLForField:field];
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