嗨,我是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中执行此操作?非常感谢!