Send Text Message from your Xojo Mac App (Ventura or newer)

I couldn’t use Geoff’s email to text message solution because my cell provider doesn’t have email to text anymore. Sending Text Messages From Xojo Apps – Xojo Programming Blog

So I figured out a workaround. I have an app that monitors a Dropbox folder and lets me know when new files are added.

I created the macOS shortcut “Send New Files Text Message” shown below:

In my app I run the following code when I need to send a text message to myself:

Var s As Shell
s = New Shell

Var a As String = "shortcuts run ""Send New Files Text Message"""
s.Execute(a)

Exception
  
  Var e As String = "Exception Error'"
  MessageBox(e)
  

This only works if you have the Apple Shortcut on the same Mac the app is running on.

1 Like

Great workaround!

1 Like