• 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: Safari: getting name of document
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Safari: getting name of document


  • Subject: Re: Safari: getting name of document
  • From: Paul Skinner <email@hidden>
  • Date: Sat, 30 Aug 2003 09:13:45 -0400

Curiously...

tell application "Safari"
name of front window-->"MacSlash: A daily dose of Macintosh News and Discussion"
end tell

Unfortunately Google is open in the front window. Safari has no script accessible property to identify which of it's windows is frontmost. It does have a 'frontmost' property, but this refers to the application.

PS

On Saturday, August 30, 2003, at 08:46 AM, Christopher Stone wrote:

At 13:01 +0100 08/30/2003, Oz Springs wrought:

A few months ago someone on this list gave me the script for getting the url of the front document of Safari.

I have since figured out how to get the text of the front document but what I really wanted was the name of the page, but with not much success. My script is currently:
______________________________________________________________________

Greetings,

Curiously "name of front document" doesn't work; it results in a missing value.

Try "name of front window"


Best Regards,

Chris
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Safari: getting name of document
      • From: Oz Springs <email@hidden>
References: 
 >Re: Safari: getting name of document (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Safari: getting name of document
  • Next by Date: Filter reference forms broken in OS X Finder?
  • Previous by thread: Re: Safari: getting name of document
  • Next by thread: Re: Safari: getting name of document
  • Index(es):
    • Date
    • Thread