![]() ![]() | ![]() |
adding support for opening of urls via applescript. Thanks to Richard Schreyer and Nicholas Riley for sample code.
1: // 2: // CHGetURLCommand.mm 3: // Chimera 4: // 5: // Created by David Hyatt on Thu Apr 18 2002. 6: // Copyright (c) 2001 __MyCompanyName__. All rights reserved. 7: // 8: 9: #import "CHGetURLCommand.h" 10: #import <AppKit/AppKit.h> 11: 12: @implementation CHGetURLCommand 13: 14: - (id)performDefaultImplementation { 15: [[NSApp delegate] openBrowserWindowWithURLString: [self directParameter]]; 16: return nil; 17: } 18: @end