InDesign 5 lines script problem

Hi, I have this very simple script that works fine in Script Editor (it displays something like “millimeters” - which is fine) but not when saved as applet (is displays “constant ****zmms”). All I want to do is being able to assign (horizontal measurement units) as string to my variable. What am I doing wrong?

tell application "Adobe InDesign CS5.5"
	activate
	tell view preferences of document 1 to set my_units to (get horizontal measurement units) as string
	tell me to display dialog my_units
end tell

Found my answers, should’ve googled it:

http://lists.apple.com/archives/applescript-users/2011/Oct/msg00067.html
http://macscripter.net/viewtopic.php?id=37486