Created
September 6, 2013 12:36
-
-
Save kfriend/6463172 to your computer and use it in GitHub Desktop.
AppleScript: Convert .numbers to .csv
Credit: https://discussions.apple.com/thread/4563057?start=0&tstart=0#20465190
This file contains 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
on run | |
tell application "Numbers" to tell front document | |
set tPath to (POSIX file (get path)) as string | |
tell tPath to if it ends with ".numbers" then set tPath to text 1 thru -9 -- remove extension | |
save as "LSDocumentTypeCSV" in file tPath -- Numbers automatically adds the ".csv" | |
end tell | |
return tPath as alias -- return the path of the CSV file to the next action | |
end run |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment