Beginning on October 25th, 2016, Persona will no longer be an option for authentication on BMO. For more details see Persona Deprecated.
Last Comment Bug 369901 - No AppleScript way to get browser window tab URLs, titles
: No AppleScript way to get browser window tab URLs, titles
Status: NEW
:
Product: Firefox
Classification: Client Software
Component: Shell Integration (show other bugs)
: unspecified
: PowerPC Mac OS X
: -- enhancement with 4 votes (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
:
: Robert Strong [:rstrong] (use needinfo to contact me)
Mentors:
Depends on: 608049
Blocks:
  Show dependency treegraph
 
Reported: 2007-02-09 12:26 PST by Doug Grinbergs
Modified: 2015-08-17 18:37 PDT (History)
9 users (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Doug Grinbergs 2007-02-09 12:26:21 PST
User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US) AppleWebKit/125.4 (KHTML, like Gecko, Safari) OmniWeb/v563.66
Build Identifier: 1.5.0.9, 2.0.0.1

Some Mac developers would like access to Firefox URL lists

Reproducible: Always

Steps to Reproduce:
1 Launch Script Editor
2 Open Firefox dictionary
Actual Results:  
No apparent provision to get URLs, titles of open window tabs

Expected Results:  
Would like commands to get URLs, titles of open window tabs

Observed with 1.5.0.9 and 2.0.0.1

This is a request from Fetch Softworks (developers of Fetch, the well-known Mac S/FTP client) <http://fetchsoftworks.com> but submitted on behalf of other developers who also could benefit from this - and who may have additional implementation input.
Comment 1 Doug Grinbergs 2007-02-09 12:53:54 PST
BTW, Fetch Softworks bug 96277 depends, in part, on this bug (FWIW, related Safari bug is rdar://4983733)
Comment 2 Michael Tsai (C-Command Software) 2008-03-18 11:03:26 PDT
With Firefox 2 I was able to get the URL of the frontmost tab using:

get <<class curl>> of window 1

using the class code because there's no entry for that property in the scripting dictionary. However, in 3.0b4 even this does not work on many of my customers' Macs.
Comment 3 Ray Kiddy 2008-03-18 11:22:11 PDT
FYI, the doc for making apps AppleScript-able is at
http://developer.apple.com/documentation/Cocoa/Conceptual/ScriptableCocoaApplications/SApps_intro/chapter_1_section_1.html
Comment 4 Danny Greg 2008-12-17 02:06:17 PST
get <<class curl>> of window 1 does _not_ work if the user is running Default Folder X on their system.

I have contacted the makers of DFX to find out what they are doing in their process that could cause some problems but haven't heard back.
Comment 5 Danny Greg 2009-04-14 01:59:25 PDT
Just to update, there is definitely a bug in FireFox which is blocking this AppleScript in certain situations, I can't quite reproduce those situations at the moment. All I know is it is currently crippling some functionality in my app.

Is there any alternative to using Applescript in FireFox?

Note You need to log in before you can comment on or make changes to this bug.