Applescript如何更改桌面模式(填充屏幕,平铺,居中等)

时间:2019-06-26 01:08:23

标签: macos applescript desktop macos-mojave wallpaper

嗨,我是applescript的新手,正在尝试制作一个包含5个名称以及相应图像的Applescript程序。因此,如果有人单击其中一个按钮,则桌面将更改为该人的图像。

这是我到目前为止所能获得的;

display dialog "Which Person?" buttons {"1", "2"} if the button returned of the result is "1" then tell application "System Events" to tell every desktop to set picture to "/Users/jamiecole/Desktop/TeacherTiles.app/Contents/Resources/Images/1.jpg"

else tell application "System Events" to tell every desktop to set picture to "/Users/jamiecole/Desktop/TeacherTiles.app/Contents/Resources/Images/2.jpg" end if

我需要将模式设置为Tile,请参见此 screenshot。如何在applescript中执行此操作?非常感谢!

0 个答案:

没有答案