login item bug in Tiger?

If I do the following, it works for path, name and kind of login item, but the hidden attribute result in an error. But the attribute hidden is listed in the Dictionary of the Login Item Suite. Is this a bug and how could I get/set the hidden of my login item?

tell application “System Events”
if name of login items contains “Mail” then
set a to name of login item “Mail”
set a to a & return & path of login item “Mail”
set a to a & return & kind of login item “Mail”
try
set a to a & return & hidden of login item “Mail”
on error
set a to a & return & “error login item”
end try
end if
end tell
a

Browser: Safari 412
Operating System: Mac OS X (10.4)

It does appear to be a bug. The hidden property returns “missing value” in the property record and causes an error when you try to access the property directly. Try this:

tell application "System Events"
	set app_name to "Main"
	if name of login items contains app_name then
		tell login item app_name
			set a to name & return & path & return & kind & return & (hidden of (get properties)) as Unicode text
		end tell
		return a
	end if
end tell

Jon

Model: PowerBook 1.25MHz
AppleScript: 1.10
Browser: Safari 412
Operating System: Mac OS X (10.4)

I get the “missing value” for (hidden of (get properties of login item “Mail”))

Browser: Safari 412
Operating System: Mac OS X (10.4)