A quick prototype illustrating a potential set of AppIntents ("shortcuts") for Draw Things
This App publishes a set of sample entry points, visible to MacOS Shortcuts:
- Generate image from prompt, arguments: Prompt (String), Negative Prompt (Optional - String)
- Generate image from json, argument: json(String)
- Run Script by name, argument: script name(String) - an existing script in DT's Scripts folder
- Execute Javascript, argument: javascript content(String)
- Get Image Folder Path: no argument - returns String containing path to DT's saved image folder, if selected
The app contains interfaces to these sample commands, but doesn't implement them of course. Running the app displays commands and their arguments, as they are issued from the Shortcuts app.
Sample Display of App
App commands appearing in Shortcuts App