Haiku scripting

Backgrounds expects the entry_ref of the image file as part of the BMessage you send to it with hey. But that’s not possible, so your best bet is Lrrr’s little tool.

1 Like

It may not be so out of reach. Try this instead of your ‘scpl’ message:

hey application/x-vnd.Haiku-Backgrounds Do MenuItem 'Scale to fit' of View 0 of View 'placement' of Window 0

Other views in Window 0 that may be of your interest are image and workspaceMenuField.

1 Like

I’ve just finished adding the ability to modify placement mode, text outline, and offset, to my bgswitch app. Don’t hesitate to let me know if you encounter any “unexpected features” (otherwise known as bugs)

3 Likes

@Lrrr would you consider trying to add those command line options to the Background prefs? A nice addition IMO…

2 Likes

I have added it to my to-do list but I don’t know if it will get done any time soon.

Script updated with @augiedoggie 's bgswitch, and hey scripting, with the hints by @madmax

Or

https://0x0.st/Xr0a.sh.zip

3 Likes