keynote-client will provide a high level API (like ActiveRecord style) to control your Keynote.
Currently this project is in alpha stage. It supports these features.
- Create a new document with specified theme
- Append a new slide with specified master slide
- Update slides
- Save a document
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install keynote-client
require 'keynote-client' include # Fetch all themes themes = Theme.all # Fetch theme specified name theme = Theme.find_by(name: 'ブラック').first # Create a new document with theme doc = Document.create(theme: theme, file_path: '/path/to/foo.key') # Save a document at file_path doc.save # Initialize a new slide slide = Slide.new("タイトル & 箇条書き", title: 'Pen', body: ["This is a pen", "Is this a pen?"].join("\n")) # Append slides doc.slides << slide # Fetch last slide slide = doc.slides.last # Update a slide slide.title = "About pen" slide.body = "Hello, pen."
- OS X El Capitan
- OS X Yosemite
keynote-client is released under the MIT License.
- Fork it ( https://github.com/katsuma/keynote-client/fork )
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create a new Pull Request