Skip to content

Instantly share code, notes, and snippets.

@jeffwray
Created March 30, 2017 13:12
Show Gist options
  • Save jeffwray/21bb6880e566c4432ae68f0cac4b6143 to your computer and use it in GitHub Desktop.
Save jeffwray/21bb6880e566c4432ae68f0cac4b6143 to your computer and use it in GitHub Desktop.
Because I care but get busy and might forget to send you a text

Ever get caught up in a project at work and forget to text that special someone? This Apple Script can help you remember.

Directions:

  1. Have your phone/imessanger connected to your mac.
  2. Open Script Editor
  3. Paste following code into editor, remember to change prompt and phone number. Recommend to test before running it in the wild.
  4. Set up a cron job in crontab to run script when you specify.
tell application "Messages"
	activate
	set whatAreYouDoing to the text returned of (display dialog "Remember to ask XYZ how XYZ is doing...." default answer "")
	send whatAreYouDoing to buddy "+15555551234" of service "SMS"
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment