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

Use a Folder Action to create a 'wannabe' iPod Shuffle Other Hardware
I created a Folder Action that turns your cheap screenless MP3 player into an iPod shuffle (3rd gen) wannabe. It reads the title of the track into a file, converts the tracks, and merges them together. This way, the audio file starts with a computer voice saying the name of the track, just like the iPod Shuffle. Or, if you drag multiple files into the folder, it asks you for a playlist title and merges the tracks together, adding the title to the front of the playlist.

To install it, download the Shuffle Wannabe Folder Action [30KB download], and add it to /Library » Scripts » Folder Action Scripts. Plug in your MP3 player, and Control-click on its drive icon. In the More contextual menu item, select Enable Folder Actions, and select the script.

I originally wrote this up on my blog

[robg adds: I haven't tested this one. Note that the download link is for a .scpt file, which Firefox (at least) doesn't like; I had to Control-click and use Save Link As to save it. I've also mirrored the script locally (as a text file), in case the source site goes away. Check the original source first (in case of updates), but if that fails (or you want to view the source before downloading), try our copy.]
  • Currently 1.56 / 5
  You rated: 1 / 5 (9 votes cast)

Use a Folder Action to create a 'wannabe' iPod Shuffle | 1 comments | Create New Account
Click here to return to the 'Use a Folder Action to create a 'wannabe' iPod Shuffle' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
possible security issue
Authored by: mzs on Jun 04, '09 09:38:45AM

Okay this is way cool, and most people do not have potentially hostile users sharing a machine but the script should use mktemp and 'quoted form of' in more places. The mkdir /tmp/songname will fail but nothing checks its return, so some other user could create that dir in /tmp before you, let everyone write to it and put a symlink in there that say most likely then overwrites, so there is that race there. Again also I see a lot of 'POSIX path of' and then just quotes later used around that, depending on the input which I do not want to grok fully 'quoted form of' most likely needs to be used otherwise a song name can be crafted to run an arbitrary process.

[ Reply to This | # ]