Re: Firefox window title
Re: Firefox window title
- Subject: Re: Firefox window title
- From: michael breidenbruecker <email@hidden>
- Date: Sat, 13 Nov 2004 23:01:43 +0100
On 13/11/04 10:25 pm, "Jeffrey Berman" <email@hidden> wrote:
> On 11/13/04 8:51 PM, michael breidenbruecker <email@hidden> wrote:
>
>> Can anyone help me to get the title from a window in firefox...
>>
>> http://www.last.fm displays the name of songs that are currently played in
>> the title of a little html player window. I am using romeo on my phone to
>> control the player (html window) via bluetooth... The only problem i m
>> having is how to get the title of the window, to display the song currently
>> played...
>
> Michael:
>
> Try the following:
>
> tell application "Firefox" to get «class pTit» of window 1
>
> (In case it does not print correctly on the mailing list, the punctuation
> marks before and after "class pTit" should be left and right guillemet
> characters, which you get on a Macintosh keyboard with option-\ and
> option-shift-\.)
>
> You can see other properties available from a Firefox window with the
> command:
>
> tell application "Firefox" to get properties of window 1
>
>
> -Jeffrey Berman
>
Wow. Works pretty good. Thanks a lot. Next problem is how to get the number
of open windows...
_______________________________________________
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