Closed nikriek closed 10 years ago
Hi Niklas,
Yes, it'll be AppleScript changes in Keynote 6. I currently don't have 6.3, nor has it shown up on my App Store, so I won't be able to look into it yet, but thanks for bringing it to my attention.
--Chris
On 25 April 2014 10:13, Niklas Riekenbrauck notifications@github.comwrote:
I got a execution error with the following traceback:
123:130: execution error: The variable Classic is not defined. (-2753) Traceback (most recent call last): File "remote_server.py", line 215, in
main() File "remote_server.py", line 199, in main set_show() File "remote_server.py", line 161, in set_show STATE.show = slideshow.generate() File "/Users/nikriek/Downloads/kaas-master/kaas/slideshow.py", line 199, in generate return Slideshow(keynote_script.APPLICATION_VERSION, path, out_dir) File "/Users/nikriek/Downloads/kaas-master/kaas/slideshow.py", line 35, in init self.kpf = kpfutil_v6.KpfV6(kpfdir) File "/Users/nikriek/Downloads/kaas-master/kaas/kpfutil_v6.py", line 63, in init self.generate_notes() File "/Users/nikriek/Downloads/kaas-master/kaas/kpfutil_v6.py", line 109, in generate_notes keynote_script.export_classic(f) File "/Users/nikriek/Downloads/kaas-master/kaas/keynote_script.py", line 95, in export_classic return execute(command) File "/Users/nikriek/Downloads/kaas-master/kaas/keynote_script.py", line 125, in execute return execute_with_app(INSTALLED_VERSIONS[APPLICATION_VERSION], command) File "/Users/nikriek/Downloads/kaas-master/kaas/keynote_script.py", line 131, in execute_with_app return check_output(["osascript", "-e", to_run]).strip() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 575, in check_output raise CalledProcessError(retcode, cmd, output=output) subprocess.CalledProcessError: Command '['osascript', '-e', 'tell application "/Applications/Keynote.app" to export front document to POSIX file "/var/tmp/tmp.0.guJaCa/classic.key" as Classic']' returned non-zero exit status 1 Any idea why? I'm not that python-experienced to fix it myself. Maybe it has something to do with recent API changes of Keynote?!
— Reply to this email directly or view it on GitHubhttps://github.com/chrisjrn/kaas/issues/7 .
--Christopher Neugebauer
Jabber: chrisjrn@gmail.com -- IRC: chrisjrn on irc.freenode.net -- WWW: http://chris.neugebauer.id.au -- Twitter: @chrisjrn
Same error with Keynote 6.2. Apparently you can look up the appropriate commands via AppleScript Editor: http://support.apple.com/kb/HT6111
In this case, you need to switch out "as Classic" for "as Keynote 09".
Thanks, Leslie.
I'll see if I can get this sorted out this evening. Keynote 6 support will remain experimental, though.
--Chris
On 11 June 2014 14:24, Leslie W notifications@github.com wrote:
Same error with Keynote 6.2. Apparently you can look up the appropriate commands via AppleScript Editor: http://support.apple.com/kb/HT6111
In this case, you need to switch out "as Classic" for "as Keynote 09".
— Reply to this email directly or view it on GitHub https://github.com/chrisjrn/kaas/issues/7#issuecomment-45700503.
--Christopher Neugebauer
Jabber: chrisjrn@gmail.com -- IRC: chrisjrn on irc.freenode.net -- WWW: http://chris.neugebauer.id.au -- Twitter: @chrisjrn
Also, for some reason in kpfutil.py:144, NSImage.alloc().initWithContentsOfFile_(texture.path()) is returning None(Type) as a tex object, which means that tex.size() returns AttributeError.
If I just return out there aren't any other errors and the server starts up.
PS can one get access to the Keymote app to try on Glass? :)
Shoot me an e-mail -- chrisjrn@gmail.com -- I'll add you to the beta programme.
FYI, I've not released Keymote (or upgraded KAAS) for some time now, because Keynote 6 still doesn't have enough AppleScript support to do what we need it to.
On 11 June 2014 16:14, Leslie W notifications@github.com wrote:
PS can one get access to the Keymote app to try on Glass? :)
— Reply to this email directly or view it on GitHub https://github.com/chrisjrn/kaas/issues/7#issuecomment-45705717.
--Christopher Neugebauer
Jabber: chrisjrn@gmail.com -- IRC: chrisjrn on irc.freenode.net -- WWW: http://chris.neugebauer.id.au -- Twitter: @chrisjrn
This issue is closed; #8 is to deal with the altered textures format in Keynote 6.2, which is needed to generate build previews.
I got a execution error with the following traceback:
Any ideas why? I'm not that python-experienced to fix it myself… Maybe it has something to do with recent API changes in Keynote?!