Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 950 Bytes

readme.md

File metadata and controls

36 lines (21 loc) · 950 Bytes

This workflow takes a phone number from your clipboard, and opens the browser link to open it in Whatsapp

http://www.packal.org/workflow/alfred-whatsapp-linker

to use:

  1. Copy the phone number to your clipboard

  2. Run the workflow

Then:

  1. if the number is valid

Alfred will open the link in the browser and the browser will redirect over to the whatsapp app

  1. if the number is invalid

Alfred will show a push notification indicating the number is invalid

  1. if the number is valid and starts with a zero

Alfred will append the country code 62 and then Alfred will open the link in the browser and the browser will redirect over to the whatsapp app

to run test suite

  1. npm install
  2. uncomment the last line of the osascript file ( exports.filter = filter; )
  3. npm run jest

to package for alfred

  1. paste the workflow into the script in the existing workflow
  2. export

to do - figure out how to automate packaging