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 |
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?
|
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 02:12 PM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.