Here's how to pick pockets and open the junkboxes that you will loot.
Obviously you'll need to set 'Use stealth' on in the rogue config - it's up to you wether you use it only on pulls or not.
You'll also need to switch on the 'Open with Cheap Shot' setting.
Once those are set create this macro to put into the Cheap Shot button on the action bar:
/cast Pick Pocket
/cast Cheap Shot
As pick pocket doesn't trigger global cooldown you will pick pocket and cheap shot at once when glider presses the button for you
So now that you ahve some junkboxes how do you open them?
You will need to add two more macros, configure two more action buttons, and set up your keys for glider.
First macro (postcombat) loots opened junkboxes, you will need to add the names of any junkboxes you want to open:
/use battered junkbox
/use other junkbox
The next macro (postloot) is the clever one that unlocks the junkbox, you will need to edit this to match the name of the junkboxes you are looting in any area:
/cast Pick Lock
/use battered junkbox
/use Thieves' Tools
You will probably ask why is there a '/use Thieves' Tools' line in there. This is there for when you have no junkbox to open and causes a deliberate error, otherwise if you have no junkbox then the cursor will stay with the open lock glowing blue hand and glider will fall over.
Now we have our macros place them somewhere on the action bars and bind them to some keys.
Lastly edit the keys.xml file so that the postcombat action uses the first macro and the postloot action uses the second macro.
Here's how it will work:
Glider stealths up to a humanoid
picks pocket looting a junkbox
cheap shot and finish combat.
Glider uses postcombat macro but can't open junkbox
Glider loots body
Glider uses postloot macro and picks the lock on the junkbox
Glider goes on to the next target
after the combat is completed glider uses the postcombat macro but this time the junkbox is unlocked and glider loots it!
Ta da!
* Note that this is duplicated in my macro and glider guide in the guides section - please refer there for other uses of macros
* Revision; Changed '/use hearthstone' for '/use Thieves' Tools' because version 2.3 of wow will now occasionally actually use the hearthstone under certain conditions
* Revision; removed /stopcasting from pickpocket+cheapshot macro as it is redundant after patch 2.3