added waitForAppScript cap
Merge pull request #4191 from sebv/waitForAppScript

Added waitForAppScript cap