Tab View woes

I’m creating an application that duplicates a user’s files and preferences. No matter what I do, I can’t get the tab view to switch. At this point, I’m just using display dialog commands to ensure that the handlers are working.

When I run this particular script, I get a (-1700) error: Can’t make <> into type reference.

-- This script determines if there is enough space on the hard drive
--
script hdSpace
	property parent : InfoPanel
	property infoPanelName : "space"
	property infoPanelInstruction : "Please wait while we determine if you have enough space to create the new account"
	
	display dialog "cool"
	set current tab view item to tab view item "account" 
end script

I tried using the developer example script from the Assistant app, but that seems to cause unlimited numbers of (-1708) errors. I’ve also tried the following command:

tell tab view "info panel" of box "border" of window "main"
set current tab view item to tab view item "account"
end tell

Can anyone tell me what I’m doing wrong?

I am a total beginner, so please forgive me if I do not completely understand your request.

I made a small app wherein I wanted a specific tab view to be present upon startup, and used this native handler:

on will select tab view item theObject tab view item tabViewItem
	tell tab view "tabby" of window "main" to set current tab view item to tab view item "tab_dir"
	
end will select tab view item

This works great at startup. I don’t know if it can be called at other times, or if this syntax can be used elsewhere.

Good luck,