Prompt Detail:
No problem, I can help you with that! Here's how you can create a shortcut on your Mac that will take a phone number, remove the plus sign and empty spaces, and then open the URL wa.me/ with the phone number appended:
- Open Automator on your Mac. You can find it by searching for "Automator" in Spotlight or by going to your Applications folder and opening it from there.
- In Automator, choose "New Document".
- Choose "Quick Action" as the type of document you want to create.
- In the top right corner, change the input to "no input" and the application to "Finder".
- In the left column, find "Utilities" and then double-click on "Run Shell Script".
- In the new window that appears, replace the default script with the following script:
bashinput="$(echo "$1" | tr -d '+[:space:]')"
open "https://wa.me/$input"
- Save the workflow with a name like "WhatsApp Shortcut".
- Now you can select any phone number in Finder, right-click on it, and choose "Quick Actions" > "WhatsApp Shortcut" from the context menu. This will open the WhatsApp URL with the phone number appended.
That's it! Now you have a shortcut that will allow you to quickly open WhatsApp with any phone number you select.
Add a comment