Could anyone tell me how to check if a Volume is locked in AppleScript

Hi,

Could anyone tell me how to check if a Volume is locked in AppleScript.

I’ve tried all kind of things but can’t get it to work. I can’t understand why:

if locked of disk myVolume is true then

end if

Doesn’t work???

Thanks in Advance
DAve

Dave,

You wrapped you code in a Finder tell block?
This works for me:

tell application "Finder"
	if locked of disk "MyVolume" is true then
		display dialog "MyVolume is locked."
	else
		display dialog "MyVolume is not locked."
	end if
end tell

OSX, 10.3.2