The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   AppleScripting Omni Apps (http://forums.omnigroup.com/forumdisplay.php?f=46)
-   -   Document properties in OmniGraffle (http://forums.omnigroup.com/showthread.php?t=10566)

RobLewis 2008-11-12 02:55 PM

Document properties in OmniGraffle
 
It would be very handy if AppleScript could access document properties like Keywords, Projects, Authors, Version, Subject etc.

For my purposes, read-only would be OK, but read/write would be even better.

How 'bout it?

Lizard 2008-11-14 10:52 AM

Some of this info is already available through Finder, as follows:
[CODE]
set my_file_path to ""
tell application "OmniGraffle Professional 5"
set my_file_path to path of front document
end tell

tell application "Finder"
if my_file_path is not "" then
set my_file to (POSIX file my_file_path) as alias
properties of my_file
end if
end tell
[/CODE]


All times are GMT -8. The time now is 01:36 AM.

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