Revision: 22794
          http://sourceforge.net/p/bibdesk/svn/22794
Author:   hofman
Date:     2018-10-11 11:46:32 +0000 (Thu, 11 Oct 2018)
Log Message:
-----------
return absolute paths directly

Modified Paths:
--------------
    trunk/bibdesk/BDSKFileURLCommand.m

Modified: trunk/bibdesk/BDSKFileURLCommand.m
===================================================================
--- trunk/bibdesk/BDSKFileURLCommand.m  2018-10-11 06:30:36 UTC (rev 22793)
+++ trunk/bibdesk/BDSKFileURLCommand.m  2018-10-11 11:46:32 UTC (rev 22794)
@@ -94,6 +94,10 @@
         [self setScriptErrorNumber:NSArgumentsWrongScriptError];
         return nil;
     }
+    if ([relativePath hasPrefix:@"~"])
+        return  [NSURL fileURLWithPath:[relativePath 
stringByExpandingTildeInPath]];
+    if ([relativePath isAbsolutePath])
+        return  [NSURL fileURLWithPath:relativePath];
     BOOL isDir = YES;
     if ([[NSFileManager defaultManager] fileExistsAtPath:[baseURL path] 
isDirectory:&isDir] && isDir == NO)
         baseURL = [baseURL URLByDeletingLastPathComponent];

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



_______________________________________________
Bibdesk-commit mailing list
Bibdesk-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to