2021年1月28日星期四

Change macOS background picture with "adapt to screen" parameter in python

I want to change my wallpaper using python on macOs. Using this code :

from appscript import app, mactypes  app('Finder').desktop_picture.set(mactypes.File(file_loc))  

which works fine, except it always resets parameter from "adjust to screen" to "centered". I can't find anything on how to add the "adjust to screen" parameter. Thanks for your help.

https://stackoverflow.com/questions/65936437/change-macos-background-picture-with-adapt-to-screen-parameter-in-python January 28, 2021 at 07:41PM

没有评论:

发表评论