Well, before anybody runs this script I want to warn you: It works by deleting any duplicate title. That means if you have a song titled “Silent Night,” it will delete every song named that except the first one.
That can be easily fixed by matching it to the artist, but I didn’t care. I made the script because I really don’t mind losing some songs that have duplicate names. If you don’t like the idea of losing the songs that might be named the same then I recommend the commercial software that checks stuff like that. I have a medium iTunes library and I didn’t really care if a few went away. I also don’t have that large of a hard-drive so I don’t want to have to consolidate my iTunes Library.
The script is based off of the Dead Track Removal script that Apple provided.
-
All you have to do is copy the script below and save it as a .JSE file.
-
After that, double click on it with iTunes closed and it should start its work.
While the script doesn’t do anything but remove the tracks that have duplicate titles please remember:
The script is provided by Lurous Production on an “AS IS” basis. LUROUS MAKES NO
WARRANTIES, EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION THE IMPLIED
WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE, REGARDING THE “SCRIPT” OR ITS USE AND OPERATION ALONE OR IN
COMBINATION WITH YOUR PRODUCTS.
IN NO EVENT SHALL LUROUS BE LIABLE FOR ANY SPECIAL, INDIRECT, INCIDENTAL OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) ARISING IN ANY WAY OUT OF THE USE, REPRODUCTION, MODIFICATION
AND/OR DISTRIBUTION OF THE “SCRIPT”, HOWEVER CAUSED AND WHETHER UNDER
THEORY OF CONTRACT, TORT (INCLUDING NEGLIGENCE), STRICT LIABILITY OR OTHERWISE,
EVEN IF LUROUS HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Anyways, without further a-do, here’s the script:
var ITTrackKindFile = 1;
var iTunesApp = WScript.CreateObject("iTunes.Application");
var usedNames = new Array();
var deletedTracks = 0;
var mainLibrary = iTunesApp.LibraryPlaylist;
var tracks = mainLibrary.Tracks;
var numTracks = tracks.Count;
var i;
var j;
var currTrackName;
var found = 0;
while (numTracks != 0)
{
var currTrack = tracks.Item(numTracks);
// is this a file track?
if (currTrack.Kind == ITTrackKindFile)
{
found = 0;
currTrackName = currTrack.Name;
for (j = 0; j < usedNames.length; j++)
{
if (found == 0) {
if (currTrack.Name == usedNames[j])
{
//Track Name Used.
currTrack.Delete();
found = 1;
deletedTracks++;
}
} else {
break;
}
}
// It survived.
usedNames.push(currTrackName);
}
numTracks--;
}
if (deletedTracks > 0)
{
if (deletedTracks == 1)
{
WScript.Echo("Removed 1 duplicate track.");
}
else
{
WScript.Echo("Removed " + deletedTracks + " duplicate tracks.");
}
}
else
{
WScript.Echo("No duplicate tracks were found.");
}



Early this morning, I finished the rendering of the map. Now I am done with the movement and I have also improved the look of the stars. (As well as added more colors.) Now, you can look around the map by clicking either 4 directions. It moves you 256 units in the direction you chose. The colors are random at the moment because I don’t have any means on determining star color.
What Is Going On? Xeno 4’s Last Update Was Ages Ago!
Sep 3
Posted by Eric Christian in Commentary | No Comments
The fact that Xeno 4 hasn’t been updated lately is widely considered unhealthy for the project. I admit that it doesn’t strike a good note with people who are anxiously waiting for the new updates. Over the summer, the updates were flowing in. That’s because over the summer, I had only one really large responsibility taking up my time, my job. Now, I have both a part-time job and full-time studies at the University. As it turns out, my workload this semester will be quite arduous. Because of this, you will not see many updates per month. I’m not sure I’ve done any since school started.
Don’t Be Alarmed
I just want to inform you not to be alarmed. I might put updates in, I might not. However, when I am not working on school and work, I am thinking of different methods of applying certain functions into the game. My school and work comes first, but Xeno 4 comes second. When I have time, I will add features into the game. There are no other projects Lurous Productions is working on right now. There are no other projects I am working on right now. It is only Xeno 4. If I am not putting updates into the game, it is because I am studying or I am at work.
We’ll Resume Heavy Work
Don’t worry, once I am not as busy at school (or it gets out) I will devote the extra time into Xeno 4. Xeno 4 has the best chance of success that I have seen in any of my projects I’ve worked on so far. I have the most of the resources, the tools, and the knowledge to complete it. The only resource I don’t have at the moment is time. However, I will have more time later on and once that happens, Xeno 4 updates will come out much faster.
I’m not saying that you won’t see updates. I’m saying don’t expect them to be fired out like they have been in the past.
Stay tuned!
Tags: low updates, updates, xeno 4