[Pythonmac-SIG] appscript and Firefox
Bill Janssen
janssen at parc.com
Thu Jun 19 04:04:11 CEST 2008
I'm finally trying to learn appscript, and I thought I'd write a
little system monitor that goes around to my various open applications
and logs what files/URLs I'm looking at. For Safari, this is easy:
print app('Safari').windows.first.current_tab.URL()
but I can't figure out how to get the current URL for Firefox.
There's a bug report at
https://bugzilla.mozilla.org/show_bug.cgi?id=427448 which seems to
show that you can get the URL with the applescript fragment
set url to get <<class curl>> of window 1 as text
at least for older versions of Firefox.
But how do I write "<<class curl>>" in appscript?
Bill
More information about the Pythonmac-SIG
mailing list