如何使用applescript启动幻灯片?
tell application "Photos"
start slideshow using folder "Monday"
end tell这不管用
发布于 2016-01-23 12:06:32
来自Photos字典:
文件夹(名词),pl文件夹A文件夹。一个容器,它保存相册和其他文件夹,但不包含媒体项。 开始幻灯片(动词)显示来自媒体项目列表、相册、文件夹或瞬间的临时幻灯片(来自Photos )
尽管命令start slideshow的描述表明您可以从文件夹中显示幻灯片,但它不起作用。
您必须在文件夹中获取相册的媒体项目列表。
tell application "Photos"
set mediaItems to media items of album "myAlbum" of folder "Monday"
start slideshow using mediaItems
end tellhttps://stackoverflow.com/questions/34963022
复制相似问题