The Omni Group Forums

The Omni Group Forums (http://forums.omnigroup.com/index.php)
-   OmniPlan General (http://forums.omnigroup.com/forumdisplay.php?f=37)
-   -   AppleScript examples? (http://forums.omnigroup.com/showthread.php?t=1196)

ppc970 2006-07-27 11:24 AM

AppleScript examples?
 
I'm interested in pushing data out of FileMaker Pro into OmniPlan.

From the available interfaces, it looks like AppleScript might be my best bet. (Although being able to IMPORT CSV files would be easier.)

Are there any AppleScript examples that OmniFolk or others have made that they would be interested in sharing?

TIA

Tom Bunch 2006-07-27 02:47 PM

Try just opening a .csv file
 
OmniPlan has csv support, though we recognize it has problems parsing and mapping data. I'd love for you to try it out and let us know. There is no File->Import menu item or anything... just open your .csv file in OmniPlan. Cleverly, the importer currently defaults to TAB delimited columns (in csv? Right.) but we'll change that. Date parsing it also rather... tetchy.

If you need more control than the column mapping offers, Applescript can probably do what you want. Here's something I banged together which is, of course, hugely rudimentary:

[CODE]
tell application "OmniPlan"
set myDoc to make new document
tell myDoc
set Myself to make new resource with properties {kind:person, efficiency:2, name:"Tom", cost per hour:200.0}
set MyTask to make new task with properties {name:"Cure Cancer", duration:8.0}
assign MyTask to Myself
end tell
end tell
[/CODE]


All times are GMT -8. The time now is 11:59 AM.

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