Mbc4

Can anyone tell me how I can script “MBC4”. The barcode software.

I have tried…


tell application "MBC4"
	copy title to theDocName
	if theDocName = "" then
		make new document 
	end if
	set template to "Chelmsford 120% EAN.eps"
	
end tell

…and…


tell application "MBC4"
	copy title to theDocName
	if theDocName = "" then
		make new window
	end if
	tell window 1
		set template to "Chelmsford 120% EAN.eps"
	end tell
end tell

… but i get the error “Can’t set template of window 1”

The library isn’t much help as it looks like it should work.

All I am trying to do is open a saved template using a script instead of manually selecting it from the MBC4 menu.

Thanks

Think I’ve figured it out.

The template command doesn’t refer to templates saved in the template folder, but to barcode types you can select from the list in the code type window.

Thanks anyway.

However if anyone has any cool ways of automating this app…