[META]Add AppleScript support and capabilities to Mozilla on Mac, e.g. AppleScript/OSA Script menu
Categories
(Firefox :: General, enhancement, P5)
Tracking
()
People
(Reporter: bugzilla, Unassigned)
References
(Depends on 8 open bugs)
Details
(Keywords: meta, Whiteboard: [bug 608049 may also have some useful info])
Reporter | ||
Comment 2•23 years ago
|
||
Reporter | ||
Comment 4•22 years ago
|
||
Comment 5•22 years ago
|
||
Comment 6•22 years ago
|
||
Comment 7•22 years ago
|
||
Updated•22 years ago
|
Comment 9•22 years ago
|
||
Comment 10•22 years ago
|
||
Comment 12•19 years ago
|
||
Comment 13•17 years ago
|
||
Comment 14•17 years ago
|
||
Comment 15•16 years ago
|
||
Comment 16•16 years ago
|
||
Comment 17•16 years ago
|
||
Comment 18•16 years ago
|
||
Comment 19•14 years ago
|
||
Comment 20•14 years ago
|
||
Comment 21•14 years ago
|
||
Comment 22•14 years ago
|
||
Comment 23•14 years ago
|
||
Comment 24•14 years ago
|
||
Updated•8 years ago
|
Updated•6 years ago
|
Comment 26•5 years ago
|
||
Wow, 18 years to grab the current URL from the active tab? I am trying to dump Chrome forever but some automation/scripting that I rely on requires being able to programmatically obtain the current tab's URL from AppleScript or via some other CLI interface. Is there any way this can get some attention? Seems like the plumbing is already in place, since the following returns quite a lot of info about the current tab, just not the URI/URL.
tell application "Firefox"
get properties of front window
end tell
Comment 27•5 years ago
|
||
For what it's worth, some hacky workarounds for this are discussed in this thread on the Keyboard Maestro forum. Although the details of that discussion are fairly specific to Keyboard Maestro, many of the same techniques could be achieved using 'plain' AppleScript, though with a little more effort required.
Comment hidden (advocacy) |
Comment 29•4 years ago
|
||
A contributor is working on this in bug 1655268.
Comment 30•3 years ago
|
||
A slightly simpler workaround than the ones linked to in Keyboard Maestro land is to use something like (or exactly) this extension:
https://github.com/erichgoldman/add-url-to-window-title / https://addons.mozilla.org/en-US/firefox/addon/add-url-to-window-title/
set extension preferences to show full url & then use a script like
on explode(delimiter, input)
local delimiter, input, ASTID
set ASTID to AppleScript's text item delimiters
try
set AppleScript's text item delimiters to delimiter
set input to text items of input
set AppleScript's text item delimiters to ASTID
return input --> list
on error eMsg number eNum
set AppleScript's text item delimiters to ASTID
error "Can't explode: " & eMsg number eNum
end try
end explode
tell application id "org.mozilla.firefoxdeveloperedition"
set wintitle to name of (get front window)
return last item of my explode("- ", wintitle)
end tell
Updated•2 years ago
|
Description
•