Desktop window 'icon view options' missing in Yosemite

G’day scripters.

I’ve got a script that I used under Mountain Lion to arrange desktop & window icons much better than Apples limited arrangements.

However, it relies on getting the desktop icon label positions, and icon arrangement, which seem to be disabled in Yosemite.

Anyone know what replaces these ‘set’ commands below (which won’t even compile unless I use ‘window 1’), or a workaround, please?

Regards

Santa


try
	tell application "Finder" to tell desktop window
		set theLabelSettings to label position of its icon view options
		set theArrangementSettings to arrangement of its icon view options
	end tell
on error errmsg number errnum
	display dialog errmsg & return & errnum
end try

Hey Santa,

I had to change your script around a bit to get it to work on Mavericks.


tell application "Finder"
	tell window of desktop
		tell its icon view options
			set theLabelSettings to label position
			set theArrangementSettings to arrangement
		end tell
	end tell
end tell

I can’t say about Yosemite (yet).

Thanks cc, works in Yosemite too!

I didn’t think of changing the addressing order around, especially as the Yosemite Finder Dictionary uses ‘desktop window’.

Regards

Santa