Tengo un libro de excel abierto, con los viejos nombres de archivo en la columna a y los nuevos nombres de archivo en la columna B. estoy intentando utilizar el applescript abajo para cambiar el nombre de los archivos de mi. Se ejecuta sin errores, pero no cambiar el nombre de los archivos. Me estoy perdiendo algo? Cualquier ayuda es muy apreciada.
set theDirectory to "/Users/admin/Desktop/test/copied images"
tell application "Microsoft Excel"
tell active sheet
tell used range
set rc to count of rows
end tell
set theList to get value of range ("A1:B" & rc) as list
repeat with theItem in theList
try
do shell script "mv " & theDirectory & "/" & quoted form of item 1 of theItem & space & theDirectory & "/" & quoted form of item 2 of theItem
end try
end repeat
end tell
end tell