# Unique Album Category ID

**URL:** https://community.mp3tag.de/t/unique-album-category-id/12054
**Category:** Support
**Created:** [May 29, 2011, 4:45am UTC](https://community.mp3tag.de/t/unique-album-category-id/12054 "2011-05-29T04:45:57Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![necrosis](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/n/90db22/32.png) [@necrosis](https://community.mp3tag.de/u/necrosis)
#### Post date: [May 29, 2011, 4:45am UTC](https://community.mp3tag.de/t/unique-album-category-id/12054/1 "2011-05-29T04:45:57Z")

</div>

Hi everyone!

I have been working on getting my script up and running , but cant seem to figure out how to give an album an unique ID number.

The script i have so far:

```
$loop(%_folderpath%)%title%;$ifgreater($strstr($lower($get(memdirectory)),$lower(%_directory%)),0,test($get(memcounter)),$put(memcounter,%_counter%));$puts(memdirectory,%_directory%);

```

I use $strstr($lower($get(memdirectory)),$lower(%\_directory%)) to compare the current directory with the previous directory (memdirectory) and determine if this is true (1) or untrue (0).

I cannot figure this out and have been working 6 hours on it......

This is what i would like to accomplish, but i guess i am just to stupid to figure it out...

[😳](http://www.flickr.com/photos/62831983@N08/5770827582/)

---

_[View the full topic](https://community.mp3tag.de/t/unique-album-category-id/12054)._
