Adium
Dock Icons Emoticons Contact List Styles Message Styles Sound Sets AppleScripts Status Icons Service Icons Menu Bar Icons Plugins Miscellaneous All
Owe RIAA

Owe RIAA

Submitted By E dixon (Reikon)

Description

Joke script that tells you and others how much you owe the RIAA.

Updates:
-Requires iTunes to be open to use
-Prompts to open iTunes if it's not already open
-Allows you to choose from the playlist you want to count


To use: /oweriaa

Images

Comments

You can reply to individual comments by clicking the "Reply" link next to each.

# by Kyle on 05/11/05 at 02:47:42

It doesnt work, something with the line:
set this_number to number_to_text(this_number)

# by Kyle on 05/11/05 at 02:54:23

yo, I figured out the prb! you need to add a function. I just added it and it works 100%!

erm add this
on number_to_text(this_number)
set this_number to this_number as text
if this_number contains "E+" then
set x to the offset of "." in this_number
set y to the offset of "+" in this_number
set z to the offset of "E" in this_number
set the decimal_adjust to characters (y - (length of this_number)) thru ?
-1 of this_number as string as number
if x is not 0 then
set the first_part to characters 1 thru (x - 1) of this_number as string
else
set the first_part to ""
end if
set the second_part to characters (x + 1) thru (z - 1) of this_number as string
set the converted_number to the first_part
repeat with i from 1 to the decimal_adjust
try
set the converted_number to ?
the converted_number & character i of the second_part
on error
set the converted_number to the converted_number & "0"
end try
end repeat
return the converted_number
else
return this_number
end if
end number_to_t

# by Reikon on 05/11/05 at 03:45:37

Thanks man. You could've just linked me to the subroutine at apple though :)

# by hola on 05/11/05 at 12:00:42

why haven't we got a background-gallery?

# by Anonymous on 05/11/05 at 17:09:36

why indeed ;)

# by Anonymous on 05/11/05 at 17:56:34

still doesn't work-when will it be updated?

# by hola on 05/11/05 at 18:57:43

i don't think that there'll be an update. they're going to move the server the next week and nobody is able to upload anything.

# by Reikon on 05/11/05 at 19:02:12

I've updated it twice. IF it still doesn't work, then I don't know what's wrong.

# by Kyle on 05/11/05 at 19:23:42

Can I post my version as ZIP on my server, and see what that does for people?

# by Anonymous on 05/12/05 at 02:17:59

I vote yes - Reikon?

# by Reikon on 05/12/05 at 03:13:34

Go for it....

# by Kyle on 05/12/05 at 18:12:18

Ok this one works for me.... I have placed the file here: Click Here and if I cant post links, the actual URL is http://files.optimalconnection.net/...oweriaa.zip

# by Reikon on 05/12/05 at 22:03:00

cool, but our code is exactly the same from what I can tell, except I changed "this_number" to "the_number"...

# by Kyle Kirby on 05/12/05 at 23:27:34

I realize that HAHAH, erm, but it works for me 100%.. so IDK maybe a copying error? Did It work for u? (I would assume so)... Its weird that it doesnt work for others..

# by Reikon on 05/18/05 at 08:48:47

Now it should work for everyone. Tell me if it doesn't. (fix was easy, but we were all perplexed why it didn't work for you, yet worked for me.)

# by Anonymous on 06/04/05 at 02:15:15

Erm.. Interesting choice of a background image....

# by on 06/04/05 at 11:26:09

This tells me that I have 103 mp3s... Are you sure about this? I definitely have around 14000.

# by Reikon on 06/04/05 at 14:06:23

Well...
-It only counts .mp3 files (not aiff or acc or m4p, or m3p, etc)
-It only counts the .mp3 files in your ~/Music/ folder

If you have them someplace else (you shouldn't if you use iTunes) it won't count them.

# by zaudragon on 06/04/05 at 23:15:46

Reikon: iTunes itself has a feature to use a folder outside of ~/Music/
And I think it'll be easily fixed to do that… but then again, I don't know the iTunes Dictionary…

# by Reikon on 06/04/05 at 23:31:48

I know this, however, polling iTunes for this location either requires, or causes iTunes to open, a situaiton I was attempting to avoid with this script.

# by zaudragon on 06/07/05 at 22:05:31

Then use an if else statement!

# by Reikon on 06/08/05 at 12:14:48

But then I'll get people complaining it doesn't work properly unless iTunes is running..lmfao...okok ok i get the point!

# by Impulse29 on 06/12/05 at 19:25:24

umm, does this assume that all the songs I have are pirated? And it only lists 1070 songs... I have over 10 000 in total, so why not count those?

# by on 06/13/05 at 23:22:29

It shows that I have 1 mp3 where I have more than 800

# by zaudragon on 06/14/05 at 15:25:19

Look up in the comments Huevoos and Impulse :D

# by on 06/17/05 at 10:01:17

Who is that in the background image?

# by Anonymous on 06/19/05 at 22:04:05

u should send me the background image lol

# by on 06/20/05 at 23:32:41

Also, it doesn't count AACs or MOvs, for those of you that have taken advantage of the little-documented video feature in iT 4.8 (which may herald a video iPod? We can hope.)

# by zaudragon on 06/25/05 at 20:38:55

okto: that was already mentioned :D

# by on 06/29/05 at 11:52:20

If you change the "set j"-line to "set j to do shell script "locate *.mp3" as string" you'll get a system-wide result and it's MUCH faster than using find.
BTW, I owe the RIAA $1,1,382,000 (7588 mp3s).

# by zaudragon on 07/13/05 at 12:10:34

Or use:
mdfind "kMDItemDisplayName == '*.mp3'wc"
Probably faster than locate since it’s Spotlight UNIX-ified

# by Reikon on 07/13/05 at 13:03:50

And for those who don't have Tiger?

I just used iTunes' dictionary. Try the new release and tell me what you think. :)

# by saiajin on 02/03/06 at 02:12:35

Hi yeah the main DL doesn't work..so Dled from Kyle and it works but only sees one mp3 cause I keep my Mp3's on another Sytem on the network using 0.88 in OSX 10.4.4


Thanx for this !!

# by gnosis on 11/18/06 at 20:19:37

Kyle's download is gone, and the main DL doesn't work. Any chance of an update so that this will work with the current iTunes?

# by burry on 06/01/11 at 05:08:43

script doesnt work on 1.4.1

Post a New Comment

You must be logged in to post comments.

Install | Download
11.85kb (1980 downloads)

12345
3.70 / 47 votes
Current Version: 1.1
Last Updated: 07/06/05
Credits:
Dragon and Striker of Immortal-Anime IRC network (irc.immortal-anime.net)