UnitName won't work on deposits. They are for units like player, target, pet, party1, raid1 etc. Deposits are not any of these.
It is unlikely that there is an automated way of doing this as the moment you try to mine while mounted it will report that you are mounted.
Of course there is a chance that there is a way but it will likely be based on creating a button that Dismounts() and then carries out the Mining action ( if that can be scripted/macro'd ). Seeing as the dismount process isn't instant it may fail the mining action anyway.
So, simplest action, is to just dismount and then do some mining. Then mount up again when finished.
|