Itunes script that suddenly doesn't work

I use this script in one application:

tell application "iTunes"
	set x to (get special kind of user playlists)
end tell

If I run this in the script editor i get back a list like this: {Party Shuffle, Purchased Music, none, none, none, etc.}. In my first application this runs as supposed, but as i try to use this in a new application it returns a list like this: {1800630355, 1800630349, 1800630350, 1800630350, 1800630350, etc.}.

This is how it looks in xcode:

on will finish launching theObject
	tell application "iTunes"
		set x to (get special kind of user playlists)
	end tell
	-- to see it spelled out: 
	tell window "Main"
		set contents of text field "testtext" to x
	end tell
end will finish launching

In my first app, i use the same script, inside the “will finish launching”, and there it works.
How is this possible?

I made a workaround with this line, which worked in all cases:

tell application "iTunes"
	set x to (get name of every user playlist whose special kind is none)
end tell