Re: Safari: getting name of document
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.