Use windowController.selectTab so activate event is properly triggered. This will make plugins like http://canisbos.com/taboptions work with SafariTabSwitching.