Skip to content

Instantly share code, notes, and snippets.

@kfriend
Created September 6, 2013 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kfriend/6463172 to your computer and use it in GitHub Desktop.
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
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