获取使用AppleScript或目标C安装的Safari浏览器的版本 [英] Get the installed Safari version using AppleScript or Objective C
问题描述
我如何检查在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 /维基/ 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为previos版本...
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或目标C安装的Safari浏览器的版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!