Adium

Changeset 23865

Show
Ignore:
Timestamp:
06/09/2008 02:01:35 AM (6 months ago)
Author:
applmak
Message:

GetURL command is now exposed.
Use it like so: tell app "Adium" to GetURL "magicURLGoesHere"
Closes #10006.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Resources/Adium.sdef

    r23753 r23865  
    4444                        <responds-to name="go invisible"> 
    4545                                <cocoa method="scriptingGoInvisible:"/> 
     46                        </responds-to> 
     47                        <responds-to name="GetURL"> 
     48                                <cocoa method="scriptingGetURL:"/> 
    4649                        </responds-to> 
    4750                </class> 
     
    294297                        </parameter> 
    295298                </command> 
     299                <command name="GetURL" code="GURLGURL" description="Tells Adium to open the specified chat, in URL form"> 
     300                        <cocoa class="NSScriptCommand" /> 
     301                        <direct-parameter description="The URL of the chat" type="text"/> 
     302                </command> 
    296303                <command name="count" code="corecnte" description="Return the number elements of a particular class within an object."> 
    297304                        <cocoa class="NSCountCommand"/> 
  • trunk/Source/AIApplication.m

    r22869 r23865  
    1919#import "AIChatControllerProtocol.h" 
    2020#import "AIContactControllerProtocol.h" 
     21#import "AdiumURLHandling.h" 
    2122 
    2223@implementation AIApplication 
     
    241242} 
    242243 
     244- (id)scriptingGetURL:(NSScriptCommand *)command 
     245{ 
     246        NSString *url = [command directParameter]; 
     247        [AdiumURLHandling handleURLEvent:url]; 
     248        return nil; 
     249} 
     250 
    243251#pragma mark Debugging 
    244252- (void)setValue:(id)value forUndefinedKey:(NSString *)key