Computer Memory

I got the followin srcipt from the Apple Developer site yet it gives me an error:

tell application “Finder”
set the installed_memory to (computer memory installed) / 1048 div 1000
end tell

The same applies for variations of the same script such as largest memory block and computer memory available. Am new to Applescript and this is the first thing I’m trying (from O’Reilly Nutshell book).

Any ideas? The error is "Expected “,” but found identifier and the word installed is highlighted.

Sorry, forgot to say…I’m on 10.4.7 on Intel arch

hi jo,

this works:

tell application "Finder"
	set the installed_memory to (system attribute "ram ") / 1048 div 1000
end tell

but i see the other one on there–which doesn’t work on my 10.4 PPC. not sure why, it may be depreciated in 10.4?

http://www.apple.com/applescript/guidebook/sbrt/pgs/sbrt.06.htm

EDITED: my URL didn’t show correctly. and i misdiagnosed–>DOAH!

Thanks dude, yeah I spotted that the Sys Attributes one worked too.

Guess it must be 10.4.7, the book I got from work is pretty old, it’s the 2001 edition, but I thought the Apple Developer site should be up to date!!

On the plus side, I discovered this forum…there goes my weekend reading through this stuff!