使用 AppleScript 或 Objective C 获取已安装的 Safari 版本 [英] Get the installed Safari version using AppleScript or Objective C

查看:21
本文介绍了使用 AppleScript 或 Objective C 获取已安装的 Safari 版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 Mac 上查看已安装的 safari 版本?我需要为 Safari 提供临时修复,因为我的应用程序无法在 safari 5.0.6 和 5.1 上运行.那么如何检测这两个版本的 safari...

How can I check the installed safari version on Mac? I need to provide temporary fix for Safari as my app didn't work on safari 5.0.6 and 5.1. So how can I detect these 2 version of safari...

我可以使用 webkit 找到它的版本,但基于此站点:http://en.wikipedia.org/wiki/Safari_version_history

i can find its version using webkit but based on this site: http://en.wikipedia.org/wiki/Safari_version_history

Safari 5.0.6 具有与之前版本类似的 webkit...

Safari 5.0.6 has the similar webkit as the previos version...

推荐答案

如果 Safari 正在运行此 AppleScript 将获得版本:

If Safari is running this AppleScript will get the version:

tell application "Safari"
    set safariVersion to version
end tell

这篇关于使用 AppleScript 或 Objective C 获取已安装的 Safari 版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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