Other Entries

Log

Real Audio AppleScript

A little Applescript to automatically open downloaded real audio .ram files in OS X:

on adding folder items to theFolder ¬
after receiving theAliases
  try
    tell application "Finder"
      repeat with thisAlias in theAliases
        if (name extension of item (thisAlias)) ¬
        is "ram" then
          try
            tell application "RealOne Player"
              open thisAlias
            end tell
          on error
            display dialog "Error: " & ¬
            the error_number & ". " & ¬
            the error_message buttons {"OK"} ¬
            default button 1
          end try
        end if
      end repeat
    end tell
  on error
    display dialog "Error: " & ¬
    the error_number & ". " & the ¬
    error_message buttons {"OK"} ¬
    default button 1
  end try
end adding folder items to

Save it in ~Library/Scripts/Folder Actions/, enable Folder Actions and attach it to your download folder, most likely the Desktop.

You need to enable the AppleScript menu by dragging the icon up to the menu bar. There you’ll find the Folder Actions menu where you can enable folder actions and attach scripts to folders.

02/18/03 04:29PM Macintosh

Recently Played on iTunes

  1. “Heroin”
    The Velvet Underground & Nico
    The Velvet Underground
    11/17/08 16:26
  2. “All Tomorrow's Parties”
    The Velvet Underground & Nico
    The Velvet Underground
    11/17/08 16:20
  3. “Run Run Run”
    The Velvet Underground & Nico
    The Velvet Underground
    11/17/08 16:16

Last 100 Songs >