Forum Moderators: travelin cat

Message Too Old, No Replies

printing URLS with Safari pages

I want URLS to print when I print Safari pages

         

judithmnewman

1:48 pm on Oct 11, 2004 (gmt 0)

10+ Year Member



Anybody got an idea how to print out URLS for pages in Safari. I've got a lot of research to do and it's a pain having to write each URL on pages I print out.
Netscape and Explorer do it - is there some way to have Safari print out URLs, too?

BlobFisk

4:50 pm on Oct 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, judithmnewman!

I've been playing around with this for last couple of days on and off and have been unable to do this either!

Anyone have any insight? Regular Mac users?

BlobFisk

8:42 am on Oct 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've moved this topic "home" as Macguru would say!

*bump*

Macguru

8:09 pm on Oct 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I *believe* Safari cannot natively do this...

But AppleScript can provide a lot of patches.

I snagged this somewere, shhht :

Paste the following in a new AppleScript document :

set myData to ""
tell application "Safari"
activate
set myURL to URL of document 1
set myData to do JavaScript "getSelection();" in document 1
if myData is "" then
set myData to text of document 1 as text
end if
end tell
set myDate to current date
set fPath to path to desktop
set fName to (do shell script "date \"+%Y-%m-%d\"") & ".txt"
set myFile to open for access file ((fPath as string) & fName) with
write permission
write "=== " & return & "Date: " & myDate & return & "Text from: " &
myURL & return & return & myData & return & return to myFile starting at
eof
close access myFile

Then save it in ~/Library/Scripts/Applications/Safari

You can then launch the script from the menu in the Finder toolbar.

I did not try it yet. Does it work?

judithmnewman

1:07 pm on Oct 22, 2004 (gmt 0)

10+ Year Member



I did what you suggested - created the AppleScript. called it "safariURLS.scpt" - then put it in the AppleScript Examples folder, since that is where the scripts seem to be showing up and not in the Library.
However, when I tried opening it and then prinint this page, I didn't not get a URL displayed anywhere on the page when I tried printing it.

timster

3:42 pm on Oct 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There's a shareware app called Safari Extender that will do this, if it's worth $10 to you.

Firefox does it for free, though, and is much more pleasant to use than Navigator or IE.

judithmnewman

6:11 pm on Oct 25, 2004 (gmt 0)

10+ Year Member



Yup, Firefox does it.
thanks

judithmnewman

6:38 pm on Oct 25, 2004 (gmt 0)

10+ Year Member



Any idea how I might get to the Safari team to suggest they enable date and URL identification on each page?

whoisgregg

8:11 pm on Oct 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[apple.com...]

There is no specific feedback page for Safari -- at least not that I could find.

timster

2:00 pm on Oct 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Any idea how I might get to the Safari team to suggest they enable date and URL identification on each page?

One would think Apple would have an employee reading this forum. Anyone know if they do?

judithmnewman

3:26 pm on Oct 26, 2004 (gmt 0)

10+ Year Member



I sent an email to the macosx address that "whoisgregg" suggested. I won't hear back but you never know - they might actually act on the suggestion at some future time.