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.

Mogsdad
  • 44,709
  • 21
  • 151
  • 275
nobinobiru
  • 792
  • 12
  • 28

1 Answers1

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
shad0w_wa1k3r
  • 12,955
  • 8
  • 67
  • 90