3

I want to get Google Chrome's active tab's url.

In Safari,

url = appscript.app('Safari').windows.first.current_tab.URL() 

Above code works, but

 url = appscript.app('Google Chrome').windows.first.current_tab.URL() 

it doesn't work

Do you have any idea? Thanks in advance.

1 Answer 1

2

Source 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 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.