You can apply AP and then go back and apply for H1 visa. When you re-enter US, you have the choice of using either one. Getting AP in itself is not the same as using it, and even if you use AP, it won't negatively affect your H1b if you plan to continue to work for your current employer.