Returning desktop icon size?

One last one, how do you return the size of the icons in the desktop?

Hi lostgame,

I think this should work:

get word 3 of (do shell script "defaults read com.apple.finder DesktopViewOptions | grep IconSize")

D.

Hi Lostgame

Think this will also work.

tell application "Finder"
	open desktop
	set x to properties of icon view options of window 1
	set y to icon size of x
end tell
y

Hi pidge,

the difference between your script and Dominik’s is that your script reads the icon size of a Finder window,
on the other hand Dominik’s reads the icon size of the icons on desktop, which can be different from the icon view of the window “Desktop”

Thank you, Dominik, that’s exactly what I needed.