• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mozilla/Firefox Suggestion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mozilla/Firefox Suggestion


  • Subject: Re: Mozilla/Firefox Suggestion
  • From: Johnny AppleScript <email@hidden>
  • Date: Fri, 15 Oct 2004 07:54:56 -0600

On 04/10/15 3:29 AM, "Elliotte Harold" <email@hidden> wrote:

> OK. That sounds good. How did you know to use «class pTit» and «class
> curl» there? Where is this documented? What other classes are available?

It's not documented, though it should  be under 'Standard Suite'; it's
usually just a basic part of any Mac OS app to be able to run the following
in some form:

    tell application "Firefox" to get windows
    tell application "Firefox" to get properties of front window
    tell application "Firefox" to get properties of window [index number]

Other apps use variations of this; some require the name, some require
'frontmost' instead of 'front', 'document' instead of 'window', and on and
on. It's very frustrating, though, when an app doesn't even have this much,
or worse, when it's broken (like in Adobe GoLive).

> Yes. For instance, how do you get the From header of the current e-mail
> message, the Reply-to header, or any other header value.

Ummm... you got me. The Firefox I have (1.0PR1) has no facility for email,
other then using Web-based email. Are you maybe using the companion email
app, Thunderbird? Or are you using a different app on the Mozilla tree?

> That's the one I'm talking about. In my experience scripts placed in the
> top-level Scripts folder do work in Firefox and Mozilla. However, they
> also show up in other apps where they don't really apply. Scripts placed
> in a special Firefox or Mozilla folder (I've tried a variety of name
> variations) do not appear and are not available in Mozilla/Firefox.

I'm afraid I don't have a good answer for that, other than to suggest using
third party menu additions that you can tell to only appear in Firefox, or
use a keystroke tool to invloke the scripts, or use an Apple Menu
replacement that allows you to install a scripts folder there.

Now, that said, I may not understand what your problem really is. If I place
a script in ~/Library/Scripts/Applications/Firefox/, and I access the script
from the global Scripts Menu while in Firefox, it works just fine. Now,
true, it does not automatically show up in the top level of the menu as it
normally should for the front-most application, but it does appear under
Script Menu -> Applications -> Firefox -> script.scpt

Does that help? Or am I still confused?

Did you get the JavaScript example I sent on a variant of this thread? It
should give you some hints as to how to do a number of things you can't do
with the anemic AS library currently in Firefox.

Cheers -- JA

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • IS: A Challenge for the Really Smart People On This List -- WAS: Re: Mozilla/Firefox Suggestion
      • From: Johnny AppleScript <email@hidden>
    • Re: Mozilla/Firefox Suggestion
      • From: Elliotte Harold <email@hidden>
References: 
 >Re: Mozilla/Firefox Suggestion (From: Elliotte Harold <email@hidden>)

  • Prev by Date: Re: How to find network computers, use Rendezvous?
  • Next by Date: [Newbie] Automatic file server mount from FileMaker
  • Previous by thread: Re: Mozilla/Firefox Suggestion
  • Next by thread: Re: Mozilla/Firefox Suggestion
  • Index(es):
    • Date
    • Thread