码迷,mamicode.com
首页 > 其他好文 > 详细

safari穿越到chrome

时间:2016-03-01 07:27:47      阅读:163      评论:0      收藏:0      [点我收藏+]

标签:

tell application "Safari"

set theURL to URL of front document

set the clipboard to theURL & return

end tell

 

property theURL : ""

tell application "Safari"

set theURL to URL of current tab of window 1

end tell

tell application "Google Chrome"

if (count of (every window where visible is true)) is greater than 0 then

tell front window

make new tab

end tell

else

make new window

end if

set URL of active tab of window 1 to theURL

activate

end tell

safari穿越到chrome

标签:

原文地址:http://www.cnblogs.com/imsb/p/5229572.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!