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

Bulk convert Safari's Web Archives to PDFs Web Browsers
I've been archiving web pages using Safari's one-file web archive format for a while. I was trying to figure out a bulk conversion method if I want to send these archives to Windows users, or switch to a different browser. It turns out that Scott Garner's Download URL as PDF Automator action can take web archive files from the Finder and will convert them to PDFs (in addition to its intended function of downloading pages off the web.)

Just download the Automator action, then create a workflow with Find Finder Items hunting through your home directory for files that have the extension webarchive. That action should feed into Scott's action, and you're all set. The action has some options, including whether or not the PDF should be split into pages.
  Post a comment  •  Comments (6)  
  • Currently 2.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (9 votes cast)
 
[20,953 views]  View Printable Version
Mix Safari 4 Beta and Final to get tabs on top Web Browsers
Just a quick note to those who, like me, greatly miss the 'tabs in the title bar' feature of Safari 4 Beta in the final release of Safari:

After installing Safari 4.0 Final, I was quite disappointed to no longer have the 'tabs in title bar,' but I still had both the app and the installer from the last Safari 4 Public Beta (remember there were two main versions; the last one was published on May 12) on another disk, and I noticed that it launches just fine using all the underpinnings of the final version.

I'm sure it's not 100% compatible, but we all know that most of the meaningful components of Safari are *not* in the app itself. In fact, I'm using it right now to write this.

In short, you can install the final Safari 4.0, then use Pacifist to extract just the app from the Public Beta disk image. Better yet, if you still have the beta, rename it to something like Safari_beta.app, and you'll be able to use the tabs in the title bar again, as well as any of the customization tricks found here and elsewhere.

[robg adds: I haven't tested this one, as I no longer have the beta installer around. I also don't know what issues, if any, this may cause.]
  Post a comment  •  Comments (28)  
  • Currently 2.15 / 5
  You rated: 4 / 5 (13 votes cast)
 
[22,186 views]  View Printable Version
Remove the Add Bookmark button from Safari 4 Web Browsers
By default, the Add Bookmark button (+) is attached to the URL address in Safari 4. There isn't an option to turn it off, but there's a workaround:
  1. Select the View » Customize Toolbar... menu option.
  2. Drag the standalone Add Bookmark button to the toolbar; it's in the top row. This will break the (+) off the address bar.
  3. Drag the Add Bookmark button off the toolbar. It will poof and leave you with a plain address bar.
  Post a comment  •  Comments (22)  
  • Currently 3.07 / 5
  You rated: 5 / 5 (15 votes cast)
 
[17,845 views]  View Printable Version
Right-click Safari 4's window title to see site hierarchy Web Browsers
I don't know if this was already documented, but in addition to using Command-click on the Safari window title to show the nested directories for a web site, Safari 4 lets you do it with a right-click (or Control-click) of the mouse as well.

[robg adds: I was positive we had this documented here, but I can't find it while searching now. If it's been posted before, please let me know.]
  Post a comment  •  Comments (6)  
  • Currently 2.10 / 5
  You rated: 5 / 5 (10 votes cast)
 
[6,391 views]  View Printable Version
Update to latest Chromium build via shell script Web Browsers
If you want to stay on the bleeding edge of Chromium for OS X's development, the following shell script automatically downloads the latest build of Chromium for Mac. Open Terminal and create a new file with vi, emacs, nano, etc. Paste in the following code: Save this script somewhere, make it executable (chmod a+x /path/to/script.sh), and schedule it with cron.

[robg adds: I tested this one, and it works as described. If you're interested in Chromium, I recently wrote a Chromium first look article for Macworld. Of course, there have been about 100 new builds since then, so things are moving quickly.

I also took the above script and wrapped it in an Automator action, along with a simple AppleScript (below) to quit Chromium if it's running -- I don't update often enough that I want to cron the task, but I wanted to make updating a simple one-click process. So I saved my workflow as an application, and put it on the Finder's toolbar. Here's the AppleScript I embedded in the workflow:
on run {input, parameters}
  tell application "System Events"
    if exists (some process whose name contains "Chromium") then
      tell application "Chromium" to quit
    end if
  end tell
end run
I prettied it up a bit with a dialog to let me know when it was done, and it works well. Updates are now a click away, and I don't have to remember to quit Chromium first.]
  Post a comment  •  Comments (7)  
  • Currently 1.90 / 5
  You rated: 1 / 5 (10 votes cast)
 
[23,402 views]  View Printable Version
Use MobileMe with Firefox and NoScript Web Browsers
Today I found that Apple's MobileMe login page redirects so quickly that I can't even see what domain I should add to NoScript's whitelist so that I can login.

Trial and error led me to a solution: Add auth.apple.com to NoScript's whitelist. To save you the time of testing others, I'll tell you here that I had already tried both me.com and mobileme.com, with and without a leading http://www. or www., but neither worked.
  Post a comment  •  Comments (4)  
  • Currently 1.78 / 5
  You rated: 3 / 5 (9 votes cast)
 
[6,944 views]  View Printable Version
Reload Safari tabs in the background via AppleScript Web Browsers
I frequently have multiple Safari tabs open. I'll be viewing a site, and one of the other tabs is a site I've already viewed, but will want to view again after some time has passed and it's been updated. It is possible to keep a tab in the background and reload it by right-clicking and selecting Reload Tab, but that seemed inefficient and like an interruption to whatever content I was currently viewing.

A quick trip into Applescript and I came up with this script to reload the first tab in the background:
tell application "Safari"
  set sameURL to URL of tab 1 of front window
  set URL of tab 1 of front window to sameURL
end tell
A few notes:
  • This script requires a launcher (Script Menu, Butler, Keyboard Maestro, Spark, etc.) to allow execution via the keyboard.
  • I made three of these scripts, one for each of the first three tabs in a window. The tab 1 in the script reflects the first (left-most) tab. Make as many versions as you'd like, just change the 1 as needed.
  • Since Control-[number] is not used by Safari (like it is in Firefox), it's a reasonably good and easy-to-remember keyboard shortcut if your script-launching method allows for this.
This script has been successfully tested with the Safari 4 Beta and with Safari 3.
  Post a comment  •  Comments (0)  
  • Currently 2.46 / 5
  You rated: 5 / 5 (13 votes cast)
 
[9,383 views]  View Printable Version
A fast and simple way to set a desktop background image Web Browsers
This hint combines two common documented tools into a time-saving trick. It requires is that you have a picture for your desktop. To use that image as your desktop picture:
  1. Open the picture in Safari. This is likely not a default image viewer, so Control-click on the image and use the Open With menu. As long as it's a common format -- JPEG, TIFF, PNG, etc -- Safari should automatically appear. You can also drag the image onto Safari's icon in the Dock, which is even simpler.
  2. In Safari, Control-click on the image and select Use Image as Desktop Picture.
VoilĂ ! That's it; this is so much faster than manually adding a photo through the Desktop & Screen Saver System Preferences panel.

[robg adds: While this is indeed a quick way to set a single image as a desktop background, it doesn't actually add the image to an existing collection; it merely sets the selected image as the desktop background. If you want to add the picture to a rotating set of images, you'll have to do it yourself. I do this by specifying my own folder of images to use for desktop images, then just adding pictures to that folder.]
  Post a comment  •  Comments (10)  
  • Currently 2.70 / 5
  You rated: 5 / 5 (10 votes cast)
 
[40,985 views]  View Printable Version
Use a speedy Safari 4 Beta Delicious.com 'plug-in' Web Browsers
After having changed over to Safari a few months ago, I noticed the lack of a fast plug-in for my Delicious bookmarks. The delicious.com website is okay, but when you use it a lot, its lack of speed can be annoying.

Hence I decided to write my own super fast Delicious 'plug-in' which isn't actually a plug-in at all. Instead, it's entirely browser-based; you can try it out at this URL. The site makes use of a new feature of HTML5 which allows you to have local storage of remote data. This makes the site very fast, but currently Safari 4 Beta is the only browser that supports this feature.

[robg adds: I haven't tested this one, as I don't have any public Delicious bookmarks, which is what the site works with. As a result, you don't need to enter your Delicious password to use the site -- so you can test it without fear of password harvesting.]
  Post a comment  •  Comments (6)  
  • Currently 1.78 / 5
  You rated: 3 / 5 (9 votes cast)
 
[11,561 views]  View Printable Version
Use Safari to create numbered duplicates of files Web Browsers
Imagine you have some files named document.txt, picture.png and music.mp3 in your Downloads folder, and you want to make copies of these files with another name, in order to preserve them in some way. You can simply use Finder's duplicate function, of course, and end with filenames ending in the word copy, or you may do the following.

Open Safari, open its Downloads window (Window » Downloads), and drag ythe files to duplicate into Safari's Download window. If the files already exist in the Downloads folder, Safari will "download" them again, but add numbers to the filenames to keep them unique. For example, document.txt will be saved again as document-1.txt, then document-2.txt, etc. This trick can thus be used to create sequentially-named files.

If the original file is not in the Downloads directory, this tip can help creating duplicates of files, instead of moving, if you are dragging from the same disk (as you can do if you hold the Option key down).
  Post a comment  •  Comments (6)  
  • Currently 2.63 / 5
  You rated: 5 / 5 (8 votes cast)
 
[4,826 views]  View Printable Version