Hey Folks,
I was trying to export a file from Keynote to PowerPoint and had problems similar to those in the recent discussion of TextEdit on Sierra.
--------------------------------------------------------------------
set keynoteFile to alias ((path to downloads folder as text) & "whydots.key") tell application "Finder" to set fileName to name of keynoteFile
if fileName ends with ".key" then set AppleScript's text item delimiters to ".key" set newFileName to text item 1 of fileName else set newFileName to fileName end if
set newFileName to newFileName & ".pptx" set savePath to (path to desktop folder as text) & newFileName
tell application "Keynote" open keynoteFile export front document to savePath as Microsoft PowerPoint end tell
--------------------------------------------------------------------
I've tried all kinds of alternatives for savePath including HFS-path, Posix-Path, and «class furl».
Does anyone have a solution to this conundrum?
|