I was browsing through internet posts when I ran across a pet feed macro that didn't work, however I was able to modify it into a working version of that same script:
(This version uses the first slot of your far right bag as the food slot)
/script if UnitExists("Pet") and not PlayerFrame.inCombat then CastSpellByName("Feed Pet"); TargetUnit("Pet"); PickupContainerItem(0, 1); end
Original Post:
http://vnboards.ign.com/WoW_Hunter_C...8/79611188/?85