Revision: 6947
http://skim-app.svn.sourceforge.net/skim-app/?rev=6947&view=rev
Author: hofman
Date: 2010-12-08 12:23:09 +0000 (Wed, 08 Dec 2010)
Log Message:
-----------
use folder bookmark when creating scripting bookmark with a folder and without
type
Modified Paths:
--------------
trunk/SKBookmark.m
Modified: trunk/SKBookmark.m
===================================================================
--- trunk/SKBookmark.m 2010-12-08 11:10:56 UTC (rev 6946)
+++ trunk/SKBookmark.m 2010-12-08 12:23:09 UTC (rev 6947)
@@ -570,10 +570,14 @@
NSString *aLabel = [properties objectForKey:@"label"];
FourCharCode type = [[properties
objectForKey:@"scriptingBookmarkType"] unsignedIntValue];
if (type == 0) {
- if (aURL)
- type = SKScriptingBookmarkTypeBookmark;
- else if (aLabel)
+ if (aURL) {
+ if ([[NSWorkspace sharedWorkspace] type:[[NSWorkspace
sharedWorkspace] typeOfFile:aPath error:NULL] conformsToType:(NSString
*)kUTTypeFolder])
+ type = SKScriptingBookmarkTypeFolder;
+ else
+ type = SKScriptingBookmarkTypeBookmark;
+ } else if (aLabel) {
type = SKScriptingBookmarkTypeSession;
+ }
}
switch (type) {
case SKScriptingBookmarkTypeBookmark:
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit