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 > OmniOutliner > OmniOutliner 4 for Mac
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
Thanks for scripting and XML! Thread Tools Search this Thread Display Modes
Thought I'd share some of my recent fun scripting OO3 and OO4, now that I've updated things to work with OO4.

I've got an outline that I use to keep track of all my gaming miniatures. I keep track of the SKU, the number, whether or not I've painted them.

Scripting has come to my rescue in two big ways. First, I wanted to get some stats on my inventory. So I wrote some applescript which walked the outline and added things up based on which checkboxes I had checked. Awesome!

Unfortunately, Applescript wasn't the fastest way and it took almost 20s to run. So I just rewrote it using Ruby to parse the xml in the .oo3 bundle. Now it's instantaneous! (Well, 0.2s, which is close enough for me.) So, thanks for using XML instead of a proprietary format in there!

Another thing I do... Reaper Mini has a great online catalog with tags and pictures . So I wrote a Ruby script using AppleScript's ScriptingBridge. It goes over all the selected rows, sucks out the SKU at the front of the line, then uses Ruby to screenscrape the site and pull out canonical name and tags, then replaces the topic and adds the tags as a note. Now that OO4 has scripting support for attachments I'm going to add the picture as well.

So, thanks!
 
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes



All times are GMT -8. The time now is 12:27 PM.


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