Re: Mozilla/Firefox Suggestion
Re: Mozilla/Firefox Suggestion
- Subject: Re: Mozilla/Firefox Suggestion
- From: Johnny AppleScript <email@hidden>
- Date: Thu, 14 Oct 2004 12:55:40 -0600
Title: Re: Mozilla/Firefox Suggestion
On 04/10/14 10:34 AM, "D. Mahaffy" <email@hidden> wrote:
> Elliotte Harold wants the following from Moz/FF:
>
> Anything and everything, but most immediately:
>
> 1. Get the text of the selection
This can be done via _javascript_, but I can't recall the JS command to send a string to the system; anyone?
Example:
tell application "Firefox" to Get URL "_javascript_:x=(getSelection());alert(x)" inside front window
...will cause the selection to appear in a JS alert window within the app; we just need the correct JS system call in place of ‘alert(x)’; in Adobe apps, this is ‘system(x)’.
> 2. Get the URL of the front window
tell application "Firefox"
try
set {t, u} to {«class pTit», «class curl»} of front window
end try
end tell
return t & return & u
> 3. Get message headers
I don't know what this means; something to do with email?
> 4. Make the scripts menu work
Scripts menu? In Firefox? Where? Confused. I'm only aware of the general AppleScript Scripts menu when I use Firefox.
_______________________________________________
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