Read string from file in Keynote

I'd like to know if there's a way to make Keynote get certain strings from a file (like a .plist, .xml or .txt) at display them at runtime in a text box.

I'm asking this because I made a "Who wants to be a millionaire"-like game using keynote, but I want to reuse the presentation without having to rewrite it every time I want to change the questions, even if it means that I have to remake it once to add this new feature 🙂

MacBook 4,1, Mac OS X (10.6.3)

Posted on May 18, 2010 2:29 PM

Reply
3 replies

May 21, 2010 6:32 AM in response to frcepeda45

I don't know of a way to do that, BUT, if you make a "template" file, you should be able to open it's internal .apxl file in TextEditor and do a find/replace.

A few things to get you set for this, is to go into Keynote's Preferences and, under "General" and in the "Saving" section, select "Save new documents as packages". Going forward, all your new documents can be opened like packages from the older version of Keynote.

Once you have that set, create your "template" document, save it, then right-click (control-click, two-finger-tap) it in the finder and choose "Show Package Contents". In there, you'll see an "index.apxl.zip" file. Double click it to unzip and you'll have index.apxl. Put the .zip file in the trash and empty it (Keynote can read either and you want to make sure the edits you're making are being used when yu open the doc to test).

Now, open that apxl file in TextEdit and do a search for your dummy text. From this point, it's just a matter of replacing that text with the new text, saving the text file, then opening the document in Keynote and checking it out. There may be minor formatting issues, but that's a LOT better than having to flip between slides from start to finish.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Read string from file in Keynote

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.