On Sat, Mar 8, 2008 at 9:54 PM, Rhet Turnbull <[EMAIL PROTECTED]> wrote:

>  --Also, sometimes the title is blank even when it the document
>  has a title
>
>  tell application "Safari"
>         activate
>         set theURL to URL of document 1
>         set theName to do JavaScript "document.title" in document 1

Neat script. I use the following method to get the page title for my
"Bookmark in Yojimbo" scripts, and it seems to work quite reliably:

set theName to the name of document 1

Jim

-- 
------------------------------------------------------------------
This message is sent to you because you are subscribed to
  the mailing list <yojimbo-talk@barebones.com>.
To unsubscribe, send mail to: <[EMAIL PROTECTED]>
List archives:  <http://www.listsearch.com/yojimbotalk.lasso>
Have a feature request, or not sure if the software's working 
correctly? Please send mail to: <[EMAIL PROTECTED]>

Reply via email to