View Single Post
dhmmjoph

 
Member Since: Oct 03, 2012
Location: WV
Posts: 30
dhmmjoph is on a distinguished road
Mac Specs: 2012 Mac Mini 2.5ghz OSX 10.8.2; Black Macbook (late 2006) OSX 10.6.8; iPhone 4; 3rd Gen iPod Touch

dhmmjoph is offline
I started a new project and used the same code. I then added to it:
Code:
on test_(sender)
        log sender's stringValue()
        set theText to sender's stringValue()
        log theText
    end test
the text I entered showed up twice in the log, indicating that the variable is being written.

However, if I try to display the variable in a dialog:
Code:
on test_(sender)
        log sender's stringValue()
        set theText to sender's stringValue()
        display dialog (theText)
    end test
then an error shows up in the log:
Quote:
2013-02-03 15:56:10.341 Test[24347:303] *** -[AppDelegate test:]: «class ocid» id «data optr00000000D0C47471FF7F0000» doesn’t understand the «event sysodlog» message. (error -1708)
QUOTE Thanks