index.js
function handleForName(name) {
    assert(typeof name == 'string', 'name must be a string')
    return osa(name => {
        const Messages = Application('Messages')
        return Messages.buddies.whose({ name: name })[0].handle()
    })(name)
}
function handleForName(name) {
    assert(typeof name == 'string', 'name must be a string')
    return osa(name => {
        const Messages = Application('Messages')
        return Messages.buddies.whose({ name: name })[0].handle()
    })(name)
}
function handleForName ( name ) { assert ( typeof name == 'string' , 'name must be a string' ) return osa ( name => { const Messages = Application ( 'Messages' ) return Messages . buddies . whose ( { name : name } ) [ 0 ] . handle ( ) } ) ( name ) }
Gets the proper handle string for a contact with the given name
Gets the proper handle string for a contact with the given name