Make an action for selections
1. Click with the Magic Wand outside the complex shape. 2. Go to Window> Action 3. Create a new action by clicking the New Action icon. 4. Select a function key you want to trigger the action, say F5. Now hit Record – the red dot shows that you’re recording. 5. Go to Select> Modify> Expand, enter two pixels and hit OK. 6. Now stop recording by hitting the square next to the red dot. 7. If you fill the layer beneath the outline you’ll see that it’s clean. 8. Now Invert Selection (Cmd+ Shift + I), and you’ve selected your complex shape without artefacts.