2
如何使用AppleScript从其POSIX路径中显示Finder中的文件?
我正在尝试创建一个AppleScript代码段,用于查找当前的随机壁纸并在Finder中显示它。我有以下代码片段,它将当前壁纸的POSIX路径作为字符串找到: set plistFolderPath to path to preferences folder from user domain as string set plistPath to plistFolderPath & "com.apple.desktop.plist" tell application "System Events" tell property list file plistPath tell contents set thePath to value of property list item "NewChangePath" of property list item "default" of property list item "Background" & …