获取桌面上图标的位置 [英] Get the position of icons on the desktop

查看:138
本文介绍了获取桌面上图标的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在OS X的桌面上找到图标的位置?

How can I get the position of an icon on the desktop in OS X? Or, how can I get a list of all icons on the desktop and their positions?

推荐答案

尝试这个AppleScript代码

Try this AppleScript code

tell application "Finder"
    get desktop position of every item of desktop
end tell

这篇关于获取桌面上图标的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆