(* 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