on getBehaviorDescription
return " " & ¬
"- - System Desktop Icons Behavior - -" & RETURN & ¬
"Changes all system desktop icons:"& RETURN & ¬
"MyComputer, NetworkNeighborhood, RecycleBinFull, RecycleBinEmpty, Inbox, Internet, MyDocuments."
end
on mouseDown
-- List of all system desktop icons
set Icons = []
add Icons, "MyComputer"
add Icons, "NetworkNeighborhood"
add Icons, "RecycleBinFull"
add Icons, "RecycleBinEmpty"
add Icons, "Inbox"
add Icons, "Internet"
add Icons, "MyDocuments"
changeIcons
end
on changeIcons
set icon = ""
set OldIcons = [:]
repeat with i = 1 to count(Icons)
do "set icon="&getAt(Icons,i)
set Ok = changeDesktopIcon (getAt(Icons,i), icon)
if getAt(Ok,1) = 0 then
-- Ok, we save all previous icons as the OldIcons property list
addProp OldIcons, getAt(Icons,i), getAt(Ok,3)
else
-- Error
alert("Error: " & getAt(Ok,1) & " - base error code")
end if
end repeat
-- Now apply the changes
set Result = ApplyDesktopIconChanges()
if getAt(Result,1) <> 0 then
alert("Error: " & getAt(Result,1) & " - base error code")
end if
end
Contact
MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA