Can somebody please explain what is wrong in the below applescript:
tell the application id "com.microsoft.Excel"
set excel to open workbook workbook file name "Users:Tom:Desktop:ID_Creation.xlsx"
end tell
I have Office2011 installed.
It gives the following error:
/usr/bin/osascript test.scpt
test.scpt:59:137: execution error: Microsoft Excel got an error: Can’t continue open workbook. (-1708)
I even tried with launch and activate command but in vain.
Ahhh I see your problem: You didn’t specify the drive name. So, instead, you should do