你如何检查一个人是否有头像?你怎么解开它?你如何从文件加载头像?来自网络,Facebook,gravatar?AppleScript可以读取哪些图像类型?是否可以使用AppleScript将现有头像复制到剪贴板?
编辑
好的,我知道如何检查一个人是否有头像
on run
using terms from application "Address Book"
my hasImage(person (random number from 1 to length of (get people of application "Address Book") of application "Address Book") of application "Address Book")
end using terms from
end run
on hasImage(myPerson)
using terms from application "Address Book"
try
set garbage to image of myPerson
garbage
true
on error number -2753
false
end try
end using terms from
end hasImage
Run Code Online (Sandbox Code Playgroud)