CARVIEW |
Select Language
HTTP/2 200
date: Sat, 19 Jul 2025 16:24:01 GMT
server: Apache/2.4.41 (Ubuntu)
vary: Cookie,User-Agent,Accept-Encoding
set-cookie: MOIN_SESSION_443_ROOT_moin=aa5ad42aca6c7a93c34f7752ed499ae9f927f66a; Expires=Sat, 19-Jul-2025 17:24:00 GMT; Max-Age=3600; Secure; Path=/
content-encoding: gzip
content-type: text/html; charset=utf-8
x-clacks-overhead: GNU Terry Pratchett
strict-transport-security: max-age=315360000; includeSubDomains; preload
MacPython/Firefox - Python Wiki
Firefox doesn't really play in the Applescripting world. See this bug filed against it, and vote for that bug if you'd like to make it Applescriptable.
However, there are some workarounds for Firefox 2. Adium uses this:
if ((application processes whose (name is equal to "firefox-bin")) count) is greater than 0 then tell application "Firefox" if (count of every window) is greater than 0 then set the end of candidateURLs to «class curl» of window 1 end if end tell end if
Hengist says this might be written in appscript like this:
from appscript import * ff = app('Firefox') appscriptref = ff.windows[1] aemref = appscriptref.AS_aemreference aemref = aemref.property('curl') appscriptref = ff.AS_newreference(aemref) print appscriptref.get()
Unfortunately, Firefox 3 broke this workaround.
MacPython/Firefox (last edited 2008-11-15 14:00:41 by localhost)
Unable to edit the page? See the FrontPage for instructions.