The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniGraffle General (http://forums.omnigroup.com/forumdisplay.php?f=10)
-   -   Importing graphics with Applescript (http://forums.omnigroup.com/showthread.php?t=6809)

hardcoreUFO 2008-01-17 08:32 AM

Importing graphics with Applescript
 
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

hardcoreUFO 2008-01-18 07:11 AM

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.

hardcoreUFO 2008-02-01 10:00 AM

I take it from the radio silence that there is no way of importing graphics via applescript or automator? How about from the clipboard?

iboy 2008-06-25 01:01 PM

A solution to importing images
 
Hi, my solution to importing images (based on the address book charting applescript) can be found here: [URL="http://forums.omnigroup.com/showthread.php?t=8276"]link to thread[/URL] - it imports an image dropped on the script into a shape as a fill... regards, Ian


All times are GMT -8. The time now is 04:38 AM.

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