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

Mozilla 1.3 changes .fileloc format Web Browsers
With Mozilla 1.3, they've changed the format of the .fileloc files for links to files on the local drives. In Mozilla 1.2.1 and earlier, local files were referenced with a format like:

file:///macintosh%20hd/Users/mcrocker/Documents/

Starting with Mozilla 1.3, the format has changed to only use two slashes, like:

file://macintosh%20hd/Users/mcrocker/Documents/

For those of you who don't know, a .fileloc file is created by dragging the tiny icon in the left of the URL text field in the Navigator window to the desktop or any Finder window. Then, to get back to that URL, just drag the .fileloc to the Navigator window. Some of us think that this is much better way to do things than with bookmarks because you can organize web pages using the standard file system rather than some sepparate entity like a bookmarks database. Unfortunately, the file names of .fileloc files is the URL, not the web page name, making these less useful than they would otherwise be.

  Post a comment  •  Comments (3)  
  • Currently 3.33 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[6,401 views] Email Article To a Friend View Printable Version
Use AppleScript to listen to NPR programs in Safari Web Browsers
Poor RealMedia plug-in support in the Camino browser finally forced me to look for an alternative way to listen to my favorite NPR programs. After very little research of the examples on Apple's AppleScript site, I decided to use the Safari browser and AppleScript to automate the process. What follows is an AppleScript that uses Safari and the RealOne player to play my two favorite programs from NPR. After I finished, I decided that it might be of some use to others -- so here it is.

Please note this script depends upon the largely static nature of the web pages from which it builds the streaming media URLs. Any significant changes in these sites may result in this script breaking.

[robg adds: Read the rest of the article for the script; I have not tested it myself.]
read more (454 words)   Post a comment  •  Comments (0)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[10,465 views] Email Article To a Friend View Printable Version
An AppleScript to email Safari URLs via PowerMail Web Browsers
In the same spirit as the recent An AppleScript to email Safari URLs with titles via Mail hint, I offer a similiar one but for PowerMail instead. It uses the wonderful Extra Suites background scripting application, from KANZU Utilites to position the focus of the newly-created email draft at the recipient email address field ready for addressing.
tell application "Safari"
  set theURL to URL of front document
  set theTitle to name of front window
end tell

tell application "PowerMail"
  set theURL to "<" & theURL & ">" & return
  set newMsg to make new message �
    with properties {subject:theTitle, content:theURL}
  open newMsg
  activate
  -- remove next 2 lines if Extra Suites
  -- not available
  delay 1
  tell application "Extra Suites" to type key "tab" with shift
end tell
[robg adds: The need for this hint may be eliminated by the Safari/email JavaScript hint, which should open your default email application, but I don't have another email client to test that theory with ... and with this, we now have three separate hints on emailing from Safari, so I think the topic is sufficiently covered!]
  Post a comment  •  Comments (2)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[6,748 views] Email Article To a Friend View Printable Version
Mailing Safari URLs via Mail - revisited Web Browsers
Last week, a hint explained how to use AppleScript to email Safari URLs. Buried in the comments to that article is a gem of a tip with a different solution to the problem. Although this hint is clearly related to the first, it uses a completely different method, and I think it's worth running as a hint of its own. So here it is...

Full credit for this hint goes to amit_kr, who wrote:
I wanted the ability to do the same thing, and found a much simpler and convenient way. Drag this link (actually a javascript) to your bookmark bar; the content of the link is this line:
 javascript:location.href='mailto:?SUBJECT='+document.title+'&BODY='+escape(location.href)
Call it whatever (say 'e'). Since this is a bookmark (and not a folder), a hotkey is assigned to it (command-1 to command-9) by Safari.

Now whenever you need to send the page title and URL to someone, just press the hot key, and that's it!! A mail message is created with the title of the page as the subject, the URL as the body, and the cursor active on the "To:" field.

So one could select a part of the webpage, press Command-C (to copy), Command-2 (to compose Mail with URL and title already there), type in the recipient's address, hit tab twice, press Command-V (to paste the selection), and hit send!
This has become my first-position bookmark, so I can email URLs with a quick Command-1.
  Post a comment  •  Comments (22)  
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[20,037 views] Email Article To a Friend View Printable Version
Potential issue with Safari and display of bold text Web Browsers
We are trying to design a website and noticed the bold tags (<b>) don't seem to be working in Safari (Internet Explorer is fine). We also noticed that other sites do seem to use bold in Safari, though.

After a little digging, I found that to use bold tags in Safari, you must specify a font face that supports bold. Look in Safari's Preferences, Appearance Tab. Click the Select button next to the font and notice that the default Geneva font doesn't support the bold typeface.

So when developing webpages that use bold, either specify a different font or make sure you change the default font in your preferences.

[robg adds: I'm publishing this hint in the hopes that someone can confirm it. In my limited testing, it didn't seem to cause problems when I specified Geneva on a simple test page, but a friend experienced just what was described here - no bold text until he switched to a font face that supported bold. Can anyone confirm (or even expand!) on this potential problem?]
  Post a comment  •  Comments (9)  
  • Currently 2.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[10,844 views] Email Article To a Friend View Printable Version
An AppleScript to email Safari URLs with titles via Mail Web Browsers

I've been trying to use Mail/Safari rather than Mozilla. One of the (many) things I miss is the ability to select "send link" when viewing a page, to have a new message created with the page title as the subject and the URL as the body. (I know Mail service has a "send selection" but that's not quite what I want). AppleScript and the AppleScript Menu to the rescue!

tell application "Safari"
  ignoring case
    set theURL to URL of front document
    set theSource to source of front document
    set AppleScript's text item delimiters to "title>"
    set theSource to second text item of theSource
    set AppleScript's text item delimiters to "</"
    set theTitle to first text item of theSource
  end ignoring
end tell

tell application "Mail"
  set accountAddresses to (email addresses of first account)
  set fromAddress to first item of accountAddresses
  set theMessage to make new outgoing message
  set visible of theMessage to true
  set subject of theMessage to theTitle
  set content of theMessage to theURL
  activate
end tell
[robg adds: Save this script as a compiled script in your user's Library -> Scripts folder, and then just activate it using the ScriptMenu icon when you need it. Very handy! As an aside, activate the ScriptMenu by double-clicking ScriptMenu.menu in the Applications -> AppleScript folder.]
  Post a comment  •  Comments (20)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[24,208 views] Email Article To a Friend View Printable Version
Download NPR audio files with Safari Web Browsers

NPR has switched from publishing RealAudio streams as .ram files to .smil files. Unfortunately, the Safari web browser appears to truncate that suffix to just .smi, which tells Mac OS that the file is a Self Mounting Image file. The system attempts to mount the bogus image on the Desktop and fails, never opening the file in the RealOne Player as intended. The first file downloaded will have the name "dmg.smi". Subsequent files are named "dmg-1.smi", "dmg-2.smi", and so on.

This script watches for files with names like that to appear in your Safari Download folder. When one does appear, the script alerts you and lets you choose whether to open it in RealOne Player or ignore it and do nothing. You can disable the confirmation dialog box by changing the value of the "request_confirmation" property to "false".

If you're a better AppleScripter than I am, and you almost certainly are, please add comments to this hint and/or send any improvements to me at pheelb at yahoo dot com. I hope this improves your NPR listening!

[robg adds: I have not tested this script, but there's no potentially dangerous code involved.]
read more (657 words)   Post a comment  •  Comments (9)  
  • Currently 3.25 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[17,924 views] Email Article To a Friend View Printable Version
Replace text with icons on Safari's bookmark bar Web Browsers
The following hint was emailed to me by macosxhints reader close2me, and I found it interesting enough to write up and post with additional detail.

Want to get more sites on your Safari bookmark bar? Or are you more of an icon than a text person? Consider replacing the names of some of your bookmarks with icons, as seen in the screenshot.

Bookmarks as iconsFrom the left, I have my Google Related button, the Apple home page, and then my News folder. How do you use icons instead of names? It's actually quite easy.

Start by enabling the character palette, as described in this hint. Once enabled, activate the palette and then set the "View" drop-down to "All."

In Safari, bring up the Bookmarks page and edit the name of one of your bookmarks -- select all the text and hit Delete so you have a blank name field. Switch back to the character palette and find an icon that you like (check in Miscellaneous Symbols, Miscellaneous Technical, and Dingbats for some good ones). Click once to select it, and then hit the Insert button. You should see your chosen symbol inserted into the bookmark name field in Safari. That's all there is to it! You can also add spaces to improve the spacing of your newly condensed bookmarks bar.

This hint, of course, should also work on any other browser that will accept input from the Character Palette (which should cover any native browser).

[Site news aside: I ran out of time this morning, hence the low hint count...]
  Post a comment  •  Comments (14)  
  • Currently 2.25 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[33,406 views] Email Article To a Friend View Printable Version
Smart text highlighting in Safari Web Browsers
In Safari, you can highlight text using traditional click-drag selection method. But there is one more way of highlighting text in Safari! Instead of a single-click to begin the highlighting, use a double-click, hold, then drag. As you drag on, Safari will highlight by word, not by a single character proximate to the cursor.

This makes selecting much easier and more accurate (assuming that you want to select words in their entirety).

[robg adds: This is actually a standard feature of Cocoa, and should work in any Cocoa application such as Mail and TextEdit. We have run a couple of other hints about Cocoa's text editing features (1, 2) if you'd like to read more about them.]
  Post a comment  •  Comments (14)  
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[20,845 views] Email Article To a Friend View Printable Version
Zoom in on Flash-based content Web Browsers
I'm not sure if this is new to all you people but I've never read it anywhere before. If you're looking at a Flash web page you can right-click (control-click) the screen and you have options to zoom in and out. You can almost zoom right to one pixel. I've only tested this with Safari and Chimera.

[robg adds: This is a standard feature of Flash, and there are other useful menu options in the contextual menu (such as the quality setting and a print button) ... the contextual menu can be especially useful if you're trying to cheat at mini-putt, but who would want to do that, just to score an 18 for 18 holes? ;-)]
  Post a comment  •  Comments (0)  
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[4,215 views] Email Article To a Friend View Printable Version