Latest 1.0.1
Homepage https://github.com/Magic-Unique/AlfredKit
License MIT
Platforms osx 10.10
Authors

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

AKList *list = [[AKList alloc] init];
list.useXMLMode = NO;
/*
 * Use XML mode, default is NO. 
 * XML mode is deprecated by Alfred.
 * If `useXMLMode` is NO, it will use JSON mode. 
 */

//  Add an item to list
[list addItemWithCreator:^(AKItem *item) {
    item.title = @"title";
    item.subtitle = @"subtitle";
    item.autocomplete = @"aktool";
    item.arg = @"arg";
    [item.icon setFileTypeWithPathExtension:@"app"];
    [item setSubtitle:@"subtitle AKModKeyCommand" mod:AKModKeyCommand];
    [item setSubtitle:@"subtitle AKModKeyOption" mod:AKModKeyOption];
    [item setSubtitle:@"subtitle AKModKeyControl" mod:AKModKeyControl];
    [item setSubtitle:@"subtitle AKModKeyShift" mod:AKModKeyShift];
    [item setSubtitle:@"subtitle AKModKeyFn" mod:AKModKeyFn];
    [item setMod:AKModKeyCommand subtitle:@"mod AKModKeyCommand" arg:@"AKModKeyCommand"];
    [item setMod:AKModKeyOption subtitle:@"mod AKModKeyOption" arg:@"AKModKeyOption"];
    [item setMod:AKModKeyControl subtitle:@"mod AKModKeyControl" arg:nil];
    [item setMod:AKModKeyShift subtitle:@"mod AKModKeyShift" arg:@"AKModKeyShift"];
    [item setMod:AKModKeyFn subtitle:@"mod AKModKeyFn" arg:@"AKModKeyFn"];
    [item setCopyText:@"onCopyText"];
    [item setLargeText:@"onLargeText"];
    item.quicklookurl = @"https://www.baidu.com";
}];

//  Format string and output to Alfred console.
[list show];

Installation

AlfredKit is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'AlfredKit'

Author

Magic-Unique, [email protected]

License

AlfredKit is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "AlfredKit",
    "version": "1.0.1",
    "summary": "AlfredKit is a simple framework for Alfred's workflow api.",
    "description": "Quick create Alfred's workflow list result.nSupport: title, subtitle, valied, arg, icon...",
    "homepage": "https://github.com/Magic-Unique/AlfredKit",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "u51b7u79cb": "[email protected]"
    },
    "platforms": {
        "osx": "10.10"
    },
    "source": {
        "git": "https://github.com/Magic-Unique/AlfredKit.git",
        "tag": "1.0.1"
    },
    "source_files": "AlfredKit/Classes/**/*.{h,m}"
}

Pin It on Pinterest

Share This