GithubHelp home page GithubHelp logo

alfred-messages-otp's Introduction

Messages.app OTP codes - Alfred Workflow

Screenshot

Description

This workflow allows you to conveniently enter an SMS OTP code that you received on your iPhone.
For this to work, you have to enable Message Forwarding on your iPhone.

This workflow uses python3 and sqlite3 (both should come with macOS, so no need to install anything via Homebrew).

It reads the latest 20 messages in the Messages.app, filters out the messages without anything that looks like an OTP code and shows it.
Then, you may select the OTP code, press Enter and it will be pasted to wherever-you-were.

Install

Download the latest .alfred-workflow file from the Releases section and open it. it should be imported to Alfred.

Usage

Press a hotkey (⌘⌥⌃\ by default) or open Alfred and type otp. Alfred will list the latest messages containing OTP codes.
Press Enter on the selected code to paste the code.

To change the hotkey/keyword, edit the blocks in the imported workflow.

Tweaking

Right click on a "Messages.app OTP" workflow, choose "Open in Finder".
Open messages.py with a text/code editor.

To tweak the filters/amount of the messages that are read from Messages.app, edit the SQL query in the SQL variable.
To tweak the OTP detection, see the variables OTP_PATTERN, OTP_PATTERN_WHITELIST, OTP_PATTERN_BLACKLIST.

alfred-messages-otp's People

Contributors

hatarist avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.