|
|
Use any song snippet as a cell phone ringtone
Here's a little command which I made a while ago:
Use any song snippet as a cell phone ringtone
My perl hacker friend Dave Cash tackled this problem with me by writing a perl script. My only contribution is the hackish applescript contained therein.
Here's the script:
To use this script: save it somewhere as itunes.pl. In Terminal, cd to the folder where you saved it. Type this command perl itunes.pl. (You will probably need to install Audio::M4P::Decrypt from CPAN unless you already have it installed.) Once the script is running, go to iTunes and browse the music store. Each song you preview should be saved to the desktop.
If you want to convert the protected AAC files to MP3, open hymn and process each file manually.
It would be cool to make this script into a simple app using something like PerlWrapper. Then people who wanted to use it wouldn't have to know how to install CPAN or the command line. It could even include a binary of tcpflow so people wouldn't have to install that either.
Use any song snippet as a cell phone ringtone
P.S. - the script seems to not work quite right the first couple of songs it tries to download. But keep trying and it will work eventually. I don't know how to debug it, but maybe an adventurous perl programmer can take a look. Also, if the UI applescript part that copies the text from the iTunes current selection fails (because you changed applications just as it was about to copy, for example), the file will be save to the directory where you saved the script instead of the desktop and it will have the original name that iTunes stores it as (something like s05.ypqjdnud.p.m4p).
I saved this applescript:
...to ~/Library/iTunes/Scripts/Save Music Store Previews to Desktop.scpt so I can easily start up the perl script from the iTunes script menu.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|