This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set f to choose file | |
set outputDirectory to (path to downloads folder as text) & "Excel:converted:" | |
-- make sure the outputDirectory exists and if not create it | |
if outputDirectory ends with ":" then set outputDirectory to text 1 thru -2 of outputDirectory | |
do shell script "mkdir -p " & quoted form of POSIX path of outputDirectory | |
-- save all worksheets as csv files | |
set csvPaths to {} | |
tell application "Microsoft Excel" |
NewerOlder