1 2 3 4 5 6 7 8 9 10 |
(* excel_saveascsv.applescript Saves the active sheet of workbook as csv file *) set theFile to POSIX file "/Users/csg/Desktop/temp.csv" as text tell application "Microsoft Excel" save workbook as workbook 1 filename theFile file format CSV file format end tell |