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

10.5: Apply data detectors to Safari web pages Web Browsers
Once you start using Leopard's data detectors in Apple Mail to add events to iCal and contacts to Address Book, it's natural to start craving data detectors in other apps.

Until Apple adds them to Safari, an easy workaround is to use Safari's Mail Contents of This Page (Command-I) menu item to send a web page to Mail. The data detectors don't work in an editing window, so just save and close the new message window. Select the message in your Drafts folder, and then start hovering over the contents in the lower pane of the Message Viewer.
  • Currently 2.22 / 5
  You rated: 4 / 5 (9 votes cast)

10.5: Apply data detectors to Safari web pages | 3 comments | Create New Account
Click here to return to the '10.5: Apply data detectors to Safari web pages' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
This assumes is the default mail client, no?
Authored by: Michael.Massing on Nov 22, '07 01:29:38PM

...Obvious, maybe, but not to me till I was editing the hint for my Delicious bookmark note. Now that Gmail, .Mac and all have new features or options, I'll probably revisit the question, but for now Gmail is my best choice for a default client.

Best to all,

If a nation expects to be ignorant and free, in a state of civilization, it expects what never was and never will be. - Thomas Jefferson to Col. C. Yancey, 1816

[ Reply to This | # ]
10.5: Apply data detectors to Safari web pages
Authored by: sohocoke on Sep 30, '08 04:01:30PM
I can't believe how badly Leopard sucks in this respect - why on Earth is the data detector only available in, and still not in Safari as of 10.5.5?

As all the iPhone Maps workflows depend on tapping on address fields in Address Book entries, and without any other cross-application workflows involving addresses, I find I need to now create Address book entries a lot. And it's really a pain when I have to fill in each of the fields for a contact, when I know data detection can save me a lot of time.

The level of frustration built up to the level where I finally gave up and wrote an Applescript. It took me an evening since Mail scriptability sucked, much longer than the task should deserve, as is the case with AS. But it does the job, albeit crudely. Copy the address details to the clipboard, run the script, wait for a while and in the new viewer's draft mailbox you will have the clipboard content ready for data detection.

create a draft mail message from clipboard contents for data detection - Andy Park

set theContents to the clipboard

tell application "Mail"
	set theSubject to "[datadetect] " & theContents
	set newMessage to make new outgoing message with properties {subject:theSubject, content:theContents & return & return}
	set newViewer to make new message viewer
	tell newViewer
		set selected mailboxes to {drafts mailbox}
	end tell
end tell
As I am way too sleepy now and too tired of AS, I'd greatly appreciate it someone can improve this to make it work with a text selection from any app, and to get the resulting draft message to appear on its own window rather than in another viewer window.

[ Reply to This | # ]
10.5: Apply data detectors to Safari web pages
Authored by: lachdrache on Apr 05, '10 02:06:10AM

Since Snow Leopard (10.6) you could also copy&paste to TextEdit where data detectors have been added.

Why doesn't Apple add data detectors to Safari?

[ Reply to This | # ]