I have a Keynote file that has multiple Charts on multiple slides. I'm seeking a way to update the Chart data in an automated way (AppleScript perhaps)? I found some AppleScript examples online, but they don't seem to work in the current version of AppleScript. Is anyone aware of a method for accomplishing this today?
Here's an example:
Here's an example:
tell application "Keynote"
set theCSVFile to choose file with prompt "Select the CSV file containing the chart data:"
set theChartData to paragraphs of (read theCSVFile)
-- get the chart on the second slide
set theSecondSlide to slide 2 of front document
set theChart to chart 1 of theSecondSlide
-- update the chart data
set the data of theChart to theChartData
end tell