如何刷新Finder窗口中的浏览器视图(mac os 10.5)?
我想刷新 mac os 10.5 上 finder 的 NSBrowserView
中的所有 NSTableView
。为了刷新图标视图、列表视图和流列表视图,我使用苹果脚本。
@"tell application \"Finder\" to update every item in front window"
在浏览器视图中,此脚本仅刷新最后一列。
例如,此脚本仅刷新第三列(icns-copy.m......)。
有人可以帮我吗?
I want to refresh all NSTableView
in NSBrowserView
of finder on mac os 10.5. For refreshing icon view , list view and flow list view, i am using apple script.
@"tell application \"Finder\" to update every item in front window"
In browser view this script is only refreshing last column.
For example , this script is refreshing only third column(icns-copy.m.....).
Can anyone please help me out?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它仅刷新最后一列,因为每个 Finder 窗口一次只有一个目标文件夹(其内容显示在最后一列中)。解决方案是沿着文件夹层次结构向上移动并更新父文件夹。
这是一个快速但肮脏的解决方案,因为它一直上升到磁盘的根目录。理想情况下,它会停在最左边一列中显示的文件夹处,但我不知道如何确定它是哪个文件夹。
It's only refreshing the last column because every Finder window has exactly one target folder at a time (whose content is displayed in the last column). The solution is to walk up the folder hierarchy and update the parent folders as well.
This is a quick'n'dirty solution since it goes up all the way to the disk's root. Ideally, it would stop at the folder which is displayed in the leftmost column, but I couldn't figure out how to determine which ohe it is.