The only 'difficult' part is whether you can get it to purchase one spooky sapling and change the choiceadventure. If so, perfection... automation is easy. Start with the larva, coin (which also gives 300 meat), turn in the coin, fertilizer, and then comes the fun.
Buy tree should have been planned next, or sell bar-skins if you have one which changes to sell all bar-skins if you have multiple. After that processes, if you haven't yet then buy a tree, and change choiceadventure to end. Shouldn't be too difficult since it updates your inventory normally. Can't use a between battle script for it though, because it never goes to between battle...
I think the whole choiceadventure thing for the tree needs to be done as a uniform choice, potentially through KoLmafia being recoded to allow for more logical settings, due to not being sure if it's currently limited in how to handle that. That could PROBABLY be done as an odd override currently... adv1 until you hit choiceadventure with your official choice being set to show in browser, then send specific additional pages as part of your script. Basically, make the script handle the deficiencies.
Balance check:
Negative... it pops up a mini-browser window.
Positive... it works and only buys a single tree, and can have it detect if there's 1, multiple, or no skins to sell while still in automation.
Edit: open_temple function is here. No bar-skin selling, but that's just a part of optimizing it imho.
http://kolmafia.us/showthread.php?4...scension-script!&p=35629&viewfull=1#post35629