tags:

views:

21

answers:

1

I am looking to copy the webpage title (of an open webpage in safari) to the clipboard using apple script (or a javascript snippet will do).

I will then use that Variable in Automator.

I have looked all over the web, but cannot seem to find the answer.

+1  A: 

I just tried this with Safari and it seems to work as expected:

tell application "Safari"
    get name of document 1
end tell
Paul R
Thanks a lot, worked a treat.
fighella