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

Use an OnMyCommand shortcut with CoralCache Desktop
I hate reading a great story on Slashdot or some other news site only to see that it has already been Slashdotted. So, I have started to use Coral Cache. Since the more people that use the cache, the better it is, I wanted to make it as easy as possible. I looked for a Safari plugin to use it, but I didn't find one. So I decided to make a quick OnMyCommand command. The one down side of it is that with it not being a Safari plugin, it takes two steps to use: one to copy the URL and one to send the URL to Coral Cache. Since I have not done anything before with OnMyCommand, I don't know if it is possible to do it in one step with OMC recognizing it as a link.

Well here is the XML for this simple OMC command; the DOCTYPE entry is one row with a space; shown here on two rows for a narrower display.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
  "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>COMMAND_LIST</key>
  <array>
    <dict>
      <key>ACTIVATION_MODE</key>
      <string>act_selected_or_clipboard_text</string>
      <key>COMMAND</key>
      <array>
        <string>open http://redirect.nyud.net:8090/?url=</string>
        <string>__OBJ_TEXT__</string>
      </array>
      <key>ESCAPE_SPECIAL_CHARS</key>
      <string>esc_with_percent</string>
      <key>EXECUTION_MODE</key>
      <string>exe_silent_popen</string>
      <key>NAME</key>
      <string>Coral Cached URL</string>
      <key>NOTES</key>
      <string>This will open a Coral Cache of the selected 
URL, which saves sites from being Slashotted.  Coral Cache is great as 
it allows you to view the site if someone else already used Coral Cache 
on the URL when it is unavailable.  Submitted by Kenn Herman</string>
      <key>SUBMENU_NAME</key>
      <string>..</string>
      <key>VERSION</key>
      <integer>1</integer>
    </dict>
  </array>
  <key>VERSION</key>
  <integer>2</integer>
</dict>
</plist>
[robg adds: I got this working by using the OMCEdit application that's included with OnMyCommand. There may be a simpler way to do it using the above XML file, but I just created a new command in OMCEdit. This screenshot [78KB] shows the settings I used. It works as described...]
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[4,540 views]  

Use an OnMyCommand shortcut with CoralCache | 5 comments | Create New Account
Click here to return to the 'Use an OnMyCommand shortcut with CoralCache' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Coral Cache bookmarklet
Authored by: kenferry on Oct 11, '04 01:06:21PM
I think the easiest way to get this functionality would be to use a bookmarklet, and I see there's already one available.

Installing it is as easy as dragging a link to the bookmarks bar. Triggering it is selecting a bookmark.

[ Reply to This | # ]
Coral Cache bookmarklet
Authored by: jjturner on Oct 11, '04 06:47:33PM
Here is a simpler version of a bookmarklet that uses coral cache to parse the url rather than doing it in javascript:

coralcache

The advantage to this one is that it works with port numbers in the original url.

[ Reply to This | # ]
Use an OnMyCommand shortcut with CoralCache
Authored by: elmimmo on Dec 05, '04 04:47:05PM

After reading Coral Cache's "About" section I do not really understand how it works, and hence how everyone benefits from it.

Who hosts the cache? How "the more people that use the cache the better it is"?

Anyhow, for those of you using LaunchBar 4 beta you can add a Search template in your configuration, named Go Coral Cache for example, reading http://*.nyud.net:8090. That way you can just Command+Space (or your preferred shortcut) and type Go <spacebar> www.nausicaa.net to go to Nausicaa.net's cached site, for example.



[ Reply to This | # ]
Use an OnMyCommand shortcut with CoralCache
Authored by: elmimmo on Dec 05, '04 05:03:37PM

Er… not a good Search template, since it will not work if a subfolder is specified, such as going <Command>+<Spacebar> Go <Spacebar> www.nausicaa.net/miyazaki.

Plundering the second javascript bookmarklet above, the appropiate Search Template would be http://redirect.nyud.net:8090/?url=*.



[ Reply to This | # ]
Use an OnMyCommand shortcut with CoralCache
Authored by: lvbe on Jan 01, '05 07:21:14PM

Almost there!

In iCab it only works without the *:

http://redirect.nyud.net:8090/?url=

is what goes in the search site field in preferences.

Many thanks all!

B



[ Reply to This | # ]