Get the url of active tab of a browser in C on OSX

185 Views Asked by At

Is it possible to get the URL of current tab of a Browser in C? I can do it using AppleScript but I want to use C language. Maybe I calling system, I don't know.help me please

1

There are 1 best solutions below

0
cutsoy On

You can actually use the accessibility framework to get the url for both Safari and Chrome (verified). The API is entirely in C but you do need to link to the ApplicationServices framework.