Would someone please be so kind to fix the script below. It workes fine in OS8 but with OS9 it give me an error on : set the position of disk DiskName of desktop to item i of DiskLocations.
Thanks it advance
--Begin AppleScript
property DiskNames : {}
property DiskLocations : {}
if DiskNames is {} then -- first time, initialize
--capture current values to persistent property variables
tell application "Finder"
set DiskNames to the name of every disk of the desktop
set DiskLocations to the position of every disk of the desktop
end tell
else
--set positions from retained values
repeat with i from 1 to number of DiskNames
set DiskName to item i of DiskNames
tell application "Finder"
if disk DiskName of desktop exists then --present now?
set the position of disk DiskName of desktop to item i of DiskLocations
end if
end tell
end repeat
end if
--End AppleScript