First of all, is this in the right section, or is there a separate section for Mac programming?
I am making an application that speaks text you input, and it lets you choose the voice to speak with using a drop-down button in the toolbar. I need to populate the list with all of the voices installed on the system, but it gives me an error. There are two errors that I have been getting, depending on how I have the code set up. The first one is:
Can?t get ?class popB? "lstVoices" of window "main". (-1728) (this is when I don't include 'of toolbar "tlbMain"')
And the second one is:
The specified object is a property, not an element. (-10008) (this is when I do include 'of toolbar "tlbMain"')
How do I fix this? I usually program in Visual Basic, so I don't have a clue!
Question
Briman0094
First of all, is this in the right section, or is there a separate section for Mac programming?
I am making an application that speaks text you input, and it lets you choose the voice to speak with using a drop-down button in the toolbar. I need to populate the list with all of the voices installed on the system, but it gives me an error. There are two errors that I have been getting, depending on how I have the code set up. The first one is:
Can?t get ?class popB? "lstVoices" of window "main". (-1728) (this is when I don't include 'of toolbar "tlbMain"')
And the second one is:
The specified object is a property, not an element. (-10008) (this is when I do include 'of toolbar "tlbMain"')
How do I fix this? I usually program in Visual Basic, so I don't have a clue!
Link to comment
Share on other sites
1 answer to this question
Recommended Posts