Welcome to my collection of fun and experimental AppleScripts!
This script runs a shell command to start the Ollama server's web UI and then opens it in your default web browser.
Terminates all processes using the specified port for the Ollama server, effectively shutting it down.
Launches the Stable Diffusion web server and opens the interface in your browser for easy access.
Shuts down the Stable Diffusion server by killing all processes using the specified port.
This is the most advanced script in the collection. It:
- Checks the
chat.dbfile on your computer for the latest sent message by identifying the highestROWID. - If the message starts with
[ollama], it extracts the message. - Runs a shell script to get an AI response to the message.
- Sends the AI-generated response to the target phone number.
- Finally, it shuts down the Ollama server.
For automation purposes, this script checks every 60 seconds for any changes in the chat.db file. If a change is detected, it triggers the AI Messages AppleScript.
Feel free to explore, modify, and have fun with these scripts!