divamgupta / diffusionbee-stable-diffusion-ui

Diffusion Bee is the easiest way to run Stable Diffusion locally on your M1 Mac. Comes with a one-click installer. No dependencies or technical knowledge needed.
https://diffusionbee.com
GNU Affero General Public License v3.0
12.38k stars 607 forks source link

Feature request: make scriptable #36

Open timpulver opened 1 year ago

timpulver commented 1 year ago

In order to use DiffusionBee with an (Apple) script, all menu items need to be present in the menu. I would propose to add the following entries:

This way we could write an Apple Script like the following (pseudo code):

for artist in ["Wassily Kandinsky", "Vincent van Gogh", "Pablo Picasso"]
    set clipboard text to `horse, painting by ${artist}`
    tell app DiffusionBee to to "Import text from clipboard"
    wait one minute
    tell app DiffusionBee to to "Save Image"

It would be great if it was possible to specify where the image is saved to and what the name is, e.g. ~/my-experiment/horse-by-picasso.png.

When a certain action is not possible (e.g. "Save Image" before an image was generated), the menu entry would need to be greyed out.

timpulver commented 1 year ago

@divamgupta would you accept a PR for this?