alfred-reminders icon indicating copy to clipboard operation
alfred-reminders copied to clipboard

$.getenv('reminders') got error

Open re-f opened this issue 6 years ago • 0 comments

Alfred version: 3.1.1 macOS version : 10.12.4 query is : "r in 3:00pm ue" console log show following error:

.... execution error: Error on line 5: Error: exception raised by object: *** +[NSString stringWithUTF8String:]: NULL cString (-2700) the code is

function run(argv) {
        var query = argv[0];

        ObjC.import('stdlib');
        var reminders = JSON.parse($.getenv('reminders'));
        //console.log(reminders);


        // get the actioned item
        reminderData = reminders.find(function (r) {
                return r.arg == query;
        });
        //console.log(reminderData);

        return createReminder(reminderData, $.getenv('defaultList'));
}

re-f avatar Aug 16 '18 06:08 re-f