The Omni Group

Go Back   The Omni Group Forums > OmniGraffle > OmniGraffle General
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
Importing graphics with Applescript Thread Tools Search this Thread Display Modes
What is the appropriate way of importing a graphic (e.g. pdf) onto a OG canvas? I have tried the import command in the following, but have had no luck:

set mygraphic to "/tmp/ogeq.pdf"

tell front window of application "OmniGraffle Professional 5"
activate
tell canvas 1
import file {mygraphic}
end tell
end tell
  Reply With Quote
It seems that import, as the name suggests, imports documents such as a pdf or other recognized document types. I'm looking for a way to *place* a graphic, as you get from the Place Image menu item, via Applescript.

Is there any way of doing this? I'm working on an automator plugin that typesets LaTeX equations and places them in an OG document -- this is the missing piece for that.
  Reply With Quote
I take it from the radio silence that there is no way of importing graphics via applescript or automator? How about from the clipboard?
  Reply With Quote
Hi, my solution to importing images (based on the address book charting applescript) can be found here: link to thread - it imports an image dropped on the script into a shape as a fill... regards, Ian
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
graphics import TimH OmniOutliner 3 for Mac 2 2013-03-22 05:03 PM
Importing Vector Graphics jbresner OmniGraffle General 1 2012-04-25 04:45 AM
Applescript importing from Merlin? Arild OmniFocus 1 for Mac 2 2010-03-02 09:46 PM
Graphics of Focus Feature topher.benson OmniFocus 1 for Mac 7 2007-07-01 10:54 AM
Applescript: Importing from iGTD to OmniFocus RobTrew OmniFocus 1 for Mac 7 2007-06-18 01:00 PM


All times are GMT -8. The time now is 05:28 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.