Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Save single-page Safari-generated PDFs Web Browsers
Saving a web page as a PDF in Safari is a pain. Unless the page is really small, you're going to end up with multi-page PDFs, and they're even going to be scaled down to match the width of your paper size. Without getting into the why, here is how to take a single-page PDF snapshot of a web page:
  1. Set up a really freaking big custom paper size:
    • Hit Cmd-Shift-P to bring up the Page Setup panel.
    • Select Custom Paper Size from the Settings drop-down menu.
    • Create a new paper size with obscenely large dimensions (something on the scale of 99"x99").
    • Select Page Attributes from the Settings drop-down menu.
    • Select your new paper size from the Paper Size drop-down menu.
  2. Save your web page as a PDF:
    • Hit Cmd-P to bring up the Print panel.
    • Click the Save as PDF... button.
    • Specify a n/s/l for the file and click Save.
  3. Crop the image:
    • Open the resulting PDF in Preview.
    • Click the Select Tool icon in the toolbar (or the Crop Tool icon if it is there and save yourself some keystrokes).
    • Select only the part of the PDF that you want to save.
    • Hit Cmd-K to Crop the image.
    • Hit Cmd-S to Save the image.
And you're done!

[robg adds: A couple other things to consider. One, if you do a lot of this stuff, get SnapWeb. It's $15.00 (or $30.00 for commercial use), but it uses Safari's rendering engine and makes it simple to save a web snapshot without any page breaks. Second, when I was testing this, I had troubles if I increased the page width -- sites that have infinite-width tables would render on the printed output as super wide. Instead, I just changed the page length and left the width alone.]
  Post a comment  •  Comments (8)  
  • Currently 2.17 / 5
  You rated: 4 / 5 (6 votes cast)
 
[17,435 views]  View Printable Version
Reduce Mozilla's CPU usage during multi-window browsing Web Browsers
There are times that Mozilla can be slow. This is especially true when you have many windows open and a certain number of them have animated GIFs. At times like this, you can look at the CPU Mozilla is using to find it at 50 to 60%. To reduce CPU usage, you can either have animated GIFs animate once, or not at all.

To do this, open the Preferences window and then go to Privacy & Security -> Images, then in the bottom section, there is a place to configure how many times a GIF should loop. Choose either 'once' or 'none.' Looking at Mozilla's CPU usage afterwards, you should see it drop back down to something a little more acceptable.
  Post a comment  •  Comments (1)  
  • Currently 1.00 / 5
  You rated: 1 / 5 (2 votes cast)
 
[6,339 views]  View Printable Version
10.3: Drag images from Safari to Mail (and elsewhere) Web Browsers
New with Panther (or possibly a Safari update) is the ability to drag images from the browser right into an email to be sent. No temporary file on the Desktop. Of course you can drag images straight into other apps (Word, etc.), but Mail is where it really adds to my user experience.

Previously you had to drag to the desktop, then to the email, then remember to delete the temporary image file after the mail had been sent.
  Post a comment  •  Comments (2)  
  • Currently 2.13 / 5
  You rated: 2 / 5 (8 votes cast)
 
[7,134 views]  View Printable Version
A workaround for a Safari drag-and-drop image bug Web Browsers
Most modern browsers allow you to drag an image straight from the browser window to the desktop to keep, but Safari seems to randomly leave you with an HTML document instead of the image you wanted.

I have found a [possibly roundabout] way of making sure you get the images you need every time rather than spending hours unknowingly collecting HTML documents.

Open a new Textedit.app document and drag all your pictures to its window from safari. When youre done, save it and 'Show Package Contents' on the file in the Finder. There are all your images.
  Post a comment  •  Comments (8)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[5,921 views]  View Printable Version
Clean up the Safari clipboard via text clippings Web Browsers
This might be well-known, but I just discovered it now. I wanted to copy some text from a Web page to an email message, so I copied the text in Safari and pasted it into a mail message. The pasted text included all sorts of hidden junk, such as comments, javascript and extra line breaks. So, I dragged the text to the desktop to create a text clipping and then dragged that to my email message. Voila! Clean, plain text.
  Post a comment  •  Comments (10)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[5,192 views]  View Printable Version
10.3: Instantly add a bookmark to the menu in Safari Web Browsers
Safari 1.1 v100 (the one that comes with Panther) now allows one to add a bookmark directly to the bookmarks menu, instead of always asking where to put it. One can perform this instant addition by either holding shift while selecting the "Add Bookmark..." menu item, or by using the keyboard shortcut Command-Shift-D.
  Post a comment  •  Comments (4)  
  • Currently 2.43 / 5
  You rated: 5 / 5 (7 votes cast)
 
[8,972 views]  View Printable Version
Stop page loading in Safari by hitting the Escape key Web Browsers
Im not sure when it appeared, but you can stop a page from loading by simply hitting the Escape key in Safari v. 1.1

I have missed this for along time. So long, actually, that I have learned to live without it ;).

[robg adds: This also works in Jaguar.]
  Post a comment  •  Comments (6)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[7,222 views]  View Printable Version
Use folder action scripts to relocate Safari downloads Web Browsers

I never liked that you can't set Safari to always ask you where to save downloads. With Folder Actions, there is a short fix though. I just attach this script to the folder where Safari downloads. Once the download finishes, I get prompted to move it where I want it.

(* Promts where to move a file just added to a folder
 Note: Only moves the first file if more than 
 one file if more than one file has been added.*) 
on adding folder items to this_folder after receiving these_items
  try
    (* Assume it's only working with one item right now. *)
    set the_file_info to info for item 1 of these_items
    set the_folder to choose folder with prompt 
     ("Move " & name of the_file_info & " to:")
    tell application "Finder"
      (* Move the files *)
      move file (item 1 of these_items) to folder the_folder
    end tell
  end try
end adding folder items to
[robg adds: I think this should work in 10.2 as well as 10.3, but I have not tested it yet.]
  Post a comment  •  Comments (1)  
  • Currently 1.67 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[4,514 views]  View Printable Version
Use Safari window shortcuts from the address bar Web Browsers

Often, it's nice to get some genuine shortcuts in the Mac OS -- the kind that save you time (Option key usually duplicates, etc.). The keyboard modifiers the OS designers implemented indeed work well with Safari. As some power users know, Command-clicking on a link opens that link in a new tab, behind the current tabbed window, if tabbed browsing is enabled. There are also equivalent shortcuts for:

  • opening in a new window (Option-Command-click) behind the current window
  • opening the window front (Option-Command-Shift-click)
  • downloading an item (Option-click)

But did you know you can also implement these shortcuts in the address bar (Command-L to get there quickly)? Enter your URL and hold down those very same key combinations and press Return -- and they'll work as described above. Amazing!

These are just a few subtle gems Apple engineers have come with to help us with our day-to-day tasks, and why the Mac OS is always ain elegant pleasure to work with. Enjoy!

  Post a comment  •  Comments (6)  
  • Currently 4.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[8,630 views]  View Printable Version
Create Safari cookies that expire after each session Web Browsers
In Mozilla and variants, and many other browsers, you can set Cookies to expire at the end of the session. This means that Cookies will be kept for your use, until you close your browser and they are then wiped out. I like that so that I have the benefits of Cookies but not the "long term tracking ability" that Cookies provide some less than above-board sites -- call me paranoid.

Well Safari has no preference to delete Cookies at any specified interval or when closing the browser. It IS easy enough in the preferences to delete them, but you still have to do it manually. However, Safari in its default configuration will store Cookies in the Cookies.plist file, which should be in the ~/Library -> Cookies folder. First remove all your cookies in Safari via the preferences, then do a Get Info on the Cookies.plist file and set it to Locked.

If you have successfully locked the file, in Panther at least, there will be a small locked padlock on the file icon. BINGO! Now Cookies will not be persisted to disk, only stored in memory during Safari's lifetime. You close Safari, Cookies go away!

Make sure that BEFORE you do this you go into Safari's preferences and remove all the cookies.
  Post a comment  •  Comments (5)  
  • Currently 2.33 / 5
  You rated: 2 / 5 (12 votes cast)
 
[40,677 views]  View Printable Version