Initial commit

This commit is contained in:
Allan Odgaard
2012-08-09 16:25:56 +02:00
commit 9894969e67
1103 changed files with 215580 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#import <document/collection.h>
#import <oak/CocoaSTL.h>
#import <OakFoundation/NSArray Additions.h>
#import <io/path.h>
@interface GetURLScriptCommand : NSScriptCommand
@end
@implementation GetURLScriptCommand
- (id)performDefaultImplementation
{
NSString* urlString = [self directParameter];
if([urlString hasPrefix:@"txmt:"] && ![urlString hasPrefix:@"txmt://"])
urlString = [@"txmt://" stringByAppendingString:[urlString substringFromIndex:5]];
[NSApp sendAction:@selector(handleTxMtURL:) to:nil from:[NSURL URLWithString:urlString]];
return nil;
}
@end