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

Open new Safari window with an AppleScript application Web Browsers
The Safari dock icon behavior has always annoyed me. If you have no windows open and click on it, it will open a new Safari window. Great. However, if you have other windows open or minimized to the dock, it will just restore the last window you had open, which I find annoying. My solution: AppleScript.

You can use the System Events feature of OS X to activate any menu options. For this to work, you must have "Enable access for assistive devices" enabled on the Universal Access system preference pane.

Create a new AppleScript program in Script Editor with the following code, and save it as an application:

tell application "Safari" to activate
tell application "System Events"
  tell process "Safari"
    click menu item "New Window" of menu "File" of menu bar 1
  end tell
end tell
Now, find some spiffy icon to assign to your new application and drag it to the dock. I put this application right above the real Safari application, and assigned it a different icon. When you click on this new program, it will open a new Safari window. One quirk is if Safari isn't already running, it will launch two windows since Safari loads one on startup. I've only tested this on 10.3.
  Post a comment  •  Comments (10)  
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[44,839 views] Email Article To a Friend View Printable Version
Create easy-to-use Safari search shortcuts with Sogudi Web Browsers
Sogudi is a really nice (free) plug-in for Safari that allows you to define shortcuts and search strings for easy access. For example, Sogudi comes preinstalled with a shortcut to search MacOSXHints. With Sogudi installed, just enter hint search_term in the Address Bar (replacing search_term with your own serach terms), and Sogudi will display the results. It comes with several nice shortcuts already installed (including Google (goo), dictionary.com (dict), php.net (php), etc.), and you can easily create your own. Here's one I made for searching the MacOSXHints forums (you'll understand it better after installing Sogudi):
http://forums.macosxhints.com/search.php?
s=&query=@@@&searchuser=&exactname=yes&forumchoice
=-1&titleonly=&showposts=&searchdate=
-1&beforeafter=after&sortby=lastpost&sortorder=descending
&action=simplesearch&Submit=Perform+Search
The above should be all one line with no extra spaces...
  Post a comment  •  Comments (7)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[19,138 views] Email Article To a Friend View Printable Version
A set of AppleScripts to create a scrapbook in Safari Web Browsers
As mentioned in a recent hint, it would be nice in Safari to have a scrapbook function like in Microsoft IE. I have created just such a feature, and you can download the scripts that I use in 10.2.8 for yourself.

WARNING: The scripts are for 10.2.8. I'm not on Panther - yet (hear that, Santa?). For 10.2.8, you must download GUI scripting addition from Apple. I understand that Panther has GUI scripting built-in but I'm not sure about the syntax, so maybe a scripter could edit the script and repost for 10.3 (if needed)?

[robg adds: Read the rest of the hint for the instructions; I haven't tested this one, but it seems like it would be quite handy.]
read more (405 words)   Post a comment  •  Comments (28)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[11,901 views] Email Article To a Friend View Printable Version
Customizable Mozilla/Firebird user agent spoofing Web Browsers
If you're looking for customisable user agent spoofing, then Mozilla/Firebird makes it easy. You can get the Mozilla/Firebird plugin here; don't be fooled by the Windows screenshot -- XUL is cross platform, remember.

I can confirm the Firebird plugin works fine with Firebird 0.7 on Panther. So, what user agent to masquerade as? Here's a pretty comprehensive list to get you started...
  Post a comment  •  Comments (5)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[5,361 views] Email Article To a Friend View Printable Version
Use Safari with Titan TV and EyeTV Web Browsers
Now you can use the Titan TV web site on Safari to program your EyeTV! ElGato's EyeTV uses the Titan TV web site for TV schedules in the U.S. One can click on the record button on a Titan TV listing, and the program information is automatically sent to EyeTV -- but not with Apple's Safari browser. I'd much rather use Safari than any other browser, so I created an Applescript Folder action to fix this.

The freeware script is avaiable here: http://burtcom.com/lex/

[robg adds: I can't test this one, as I don't have EyeTV...]
  Post a comment  •  Comments (8)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[9,559 views] Email Article To a Friend View Printable Version
10.3: Use the Safari Debug menu to import HTML bookmarks Web Browsers
The Safari debug menu now can handily import bookmarks from HTML files! I've had a huge number of bookmarks I exported from IE/Windows back in April, when I got rid of my PC. I haven't been able to get them into Safari, despite trying a number of tips (open the file in Safari, drag the links, etc etc). Until now.

Make sure you select the "Import Bookmarks" option, not the "Import IE/NS/Mozilla Bookmarks" option, which will just look for existing installs and get the bookmarks from there.

Since it's in a hidden menu, there must be some problems with this, but I haven't found any. Remember, when not running Safari, enter defaults write com.apple.Safari IncludeDebugMenu 1 at the terminal to turn the menu on (and then re-launch Safari).
  Post a comment  •  Comments (8)  
  • Currently 2.00 / 5
  You rated: 1 / 5 (6 votes cast)
 
[38,085 views] Email Article To a Friend View Printable Version
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 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[15,686 views] Email Article To a Friend 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
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[5,881 views] Email Article To a Friend 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 1.80 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (5 votes cast)
 
[6,718 views] Email Article To a Friend 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,447 views] Email Article To a Friend View Printable Version