The Omni Group
These forums are now read-only. Please visit our new forums to participate in discussion. A new account will be required to post in the new forums. For more info on the switch, see this post. Thank you!

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

 
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
 
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.
 
I take it from the radio silence that there is no way of importing graphics via applescript or automator? How about from the clipboard?
 
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
 
 


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 11:27 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.