This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Write files: | |
foreach($writeFiles as | |
$theFile => $fileData) { | |
t3lib_div::writeFile($extDirPath.$theFile,$fileData['content']); | |
if | |
(!@is_file($extDirPath.$theFile)) { | |
$content .= | |
sprintf($GLOBALS['LANG']->getLL('ext_import_file_not_created'), | |
$extDirPath . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'osx/cocoa' | |
require 'rubygems' | |
require 'appscript' | |
require 'activesupport' | |
require 'base64' | |
require 'fileutils' | |
class InDesignTrospection | |
include Appscript |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Include hook code here | |
require 'osx/cocoa' | |
require File.dirname(__FILE__) + '/lib/p3_indesign' | |
require File.dirname(__FILE__) + '/lib/p3_indesign_library' | |
require File.dirname(__FILE__) + '/lib/p3_indesign_import' | |
require File.dirname(__FILE__) + '/lib/p3_indesign_export' | |
require File.dirname(__FILE__) + '/lib/p3_indesign_p3s_v1' | |
require File.dirname(__FILE__) + '/lib/p3_indesign_p3s_v1_lang' | |
require File.dirname(__FILE__) + '/lib/p3_indesign_coreimg' | |
require File.dirname(__FILE__) + '/lib/p3_indesign_logger' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'appscript' | |
include Appscript | |
idApp = app('Adobe InDesign CS4') | |
myDoc= idApp.make(:new => :document) | |
p idApp.layout_windows[1].transform_reference_point.set(:to=> :top_left_anchor) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'appscript' | |
include Appscript | |
outputDir= File.join(ENV['HOME'],'Desktop') | |
pdfpath = File.join(outputDir, "myTempFile.pdf") | |
filepath = File.join(outputDir, "myTempFile.indd") | |
imagepath = File.join(outputDir, "Schermafbeelding.png") | |
imagepath = File.join(outputDir, "Schermafbeelding.png") | |
imagepath = File.join(outputDir, "test.psd") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'appscript' | |
include Appscript | |
idApp = app('Adobe InDesign CS4') | |
myDoc= idApp.make(:new => :document) | |
p idApp.PDF_export_presets.get | |
idApp.PDF_export_presets.get.each do |item | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'appscript' | |
include Appscript | |
pdfpath = "/Users/server/Desktop/myTempFile.pdf" | |
filepath = "/Users/server/Desktop/myTempFile.indd" | |
idApp = app('Adobe InDesign CS3') | |
#idApp = app('InDesignServer') | |
myDoc= idApp.open(filepath) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'appscript' | |
include Appscript | |
outputDir= File.join(ENV['HOME'],'Desktop') | |
pdfpath = File.join(outputDir, "myTempFile.pdf") | |
filepath = File.join(outputDir, "myTempFile.indd") | |
imagepath = File.join(outputDir, "Schermafbeelding.png") | |
idApp = app('Adobe InDesign CS4') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'appscript' | |
include Appscript | |
outputDir= File.join(ENV['HOME'],'Desktop') | |
pdfpath = File.join(outputDir, "myTempFile.pdf") | |
filepath = File.join(outputDir, "myTempFile.indd") | |
idApp = app('Adobe InDesign CS3') | |
#idApp = app('InDesignServer') |