Hi there,
here a script that worked very well before i upgraded to 10.11. I used it all the time when viewing pictures in 10.7. Some suggestions ?
Currently, my script does nothing, not even throwing an error.
tell application "Finder"
set win1 to Finder window 1
tell icon view options of win1
if icon size < 248 then
set icon size to 248
if shows item info is false then set shows item info to true
end if
set background color to {32768, 32768, 32768} #grey
{55225, 45931, 32867} #brown
end tell
end tell
tell application "Finder"
set win1 to Finder window 1
tell icon view options of win1
log (get icon size)
log (get shows item info)
log (get background color)
if icon size < 248 then
set icon size to 248
if shows item info is false then set shows item info to true
end if
set background color to {32768, 32768, 32768} #grey
--{55225, 45931, 32867} #brown
log (get icon size)
log (get shows item info)
log (get background color)
end tell
end tell
The log report was :
tell application "Finder"
get Finder window 1
get icon size of icon view options of Finder window id 119
(*84*)
get shows item info of icon view options of Finder window id 119
(*false*)
get background color of icon view options of Finder window id 119
(*65535, 65535, 65535*)
get icon size of icon view options of Finder window id 119
set icon size of icon view options of Finder window id 119 to 248
get shows item info of icon view options of Finder window id 119
set shows item info of icon view options of Finder window id 119 to true
set background color of icon view options of Finder window id 119 to {32768, 32768, 32768}
get icon size of icon view options of Finder window id 119
(*248*)
get shows item info of icon view options of Finder window id 119
(*true*)
get background color of icon view options of Finder window id 119
(*27831, 27830, 27831*)
end tell
As you may see, the icon size and the shows item info value are passed to the Finder but the background color is set to an other value.
As the aspect of the window was not changed, I closed it and reopened it.
The result was an awful mess.
The window has the grey background, the icon size is 248 but they are all stacked in the left-top area of the window.
I was forced to reset everything by hand.