This blog is really for me more than anybody else. It's where I write down things I frequently have to go back to. This one's for my Dell 700m laptop. The only thing I really want to note down is: CTRL-F11
Links:
http://www.goodells.net/dellrestore/fixes.htm
http://support.dell.com/support/topics/global.aspx/support/dsn/document?c=us&l=en&s=gen&docid=3E48AE3870775D64E040A68F5B2877D4&journalid=4A21D63B811197CBE040A68F27286213&Query=&SystemID=&ServiceTag=&contenttype=&os=&component=&lang=&doclang=&toggle=&dl=
Sunday, April 6, 2008
Saturday, April 5, 2008
Camel Caps Title and Artist in iTunes
I DON'T LIKE ALL CAPS LIKE THIS. I prefer my music titles to: "Use Camel Caps". And I'm tired to renaming each of the 1000 Top Songs Of The 80's. Here is my solution:
1) Save the snippet below into: MarkyCamelCapsSelectedSongs.js
2) Open iTunes and select the songs you want to convert.
3) Double click MarkyCamelCapsSelectedSongs.js from explorer to run it.
You should see your selected songs get converted.
More Info here:
http://developer.apple.com/sdk/
http://www.nsc.ru/docs/ms/js/jstoc.htm
http://www.asp.dk/docs/jscript/jstutor.htm
Enjoy!
1) Save the snippet below into: MarkyCamelCapsSelectedSongs.js
// m_a_r_k_y@yahoo.com 2008-04-05 Initial
var iTunesApp = WScript.CreateObject("iTunes.Application");
var selectedTracks = iTunesApp.SelectedTracks;
var numTracks = selectedTracks.Count;
var ITTrackKindFile = 1;
while (numTracks > 0) {
var currTrack = selectedTracks .Item(numTracks);
// is this a file track?
if (currTrack.Kind == ITTrackKindFile) {
title = currTrack.Name;
artist = currTrack.Artist;
//WScript.Echo(convertToCamelCaps(title) + " : " + convertToCamelCaps(artist));
currTrack.Name = convertToCamelCaps(currTrack.Name);
currTrack.Artist = convertToCamelCaps(currTrack.Artist);
}
numTracks--;
}
// camelcaps string converter
function convertToCamelCaps(str) {
var tempArray = str.split(' ');
for (var i = 0; i < tempArray.length; i++) {
tempArray[i] = tempArray[i].charAt(0).toUpperCase() + tempArray[i].substring(1).toLowerCase();
}
return tempArray.join(' ');
}
2) Open iTunes and select the songs you want to convert.
3) Double click MarkyCamelCapsSelectedSongs.js from explorer to run it.
You should see your selected songs get converted.
More Info here:
http://developer.apple.com/sdk/
http://www.nsc.ru/docs/ms/js/jstoc.htm
http://www.asp.dk/docs/jscript/jstutor.htm
Enjoy!
Subscribe to:
Posts (Atom)