[英]How to get Chrome's active_tab's url by calling Python's app script?
我想獲取Google Chrome瀏覽器的活動標簽頁的網址。
在Safari中,
url = appscript.app('Safari').windows.first.current_tab.URL()
上面的代碼有效,但是
url = appscript.app('Google Chrome').windows.first.current_tab.URL()
它不起作用
你有什么主意嗎? 提前致謝。
來源網址-> http://reganmian.net/wiki/appscript
url = appscript.app("Google Chrome").windows[1].get.tabs[dt.windows[1].get.active_tab_index.get].get.URL.get
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.