Best to just use a tasker for that.

http://www.vtaskstudio.com/index.php is nice
There's a lot of them out there, including some free ones.