Skip to content

Instantly share code, notes, and snippets.

@mipmip
Created July 11, 2013 12:41
Show Gist options
  • Save mipmip/5975109 to your computer and use it in GitHub Desktop.
Save mipmip/5975109 to your computer and use it in GitHub Desktop.
Text To Outlines
require 'rubygems'
require 'appscript'
include Appscript
idApp = app('Adobe InDesign CS4')
myDoc= idApp.make(:new => :document)
myFrame = idApp.documents[1].pages[1].make(:new => :text_frame)
myFrame.geometric_bounds.set(['6p', '6p', '18p', '18p'])
myFrame.contents.set("Hello Ruby World!")
myFrame.create_outlines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment