- Registriert
- 20.03.09
- Beiträge
- 280
Ich habe versucht, ein einfaches Programm mit grafischer Oberfläche in XCode, in AppleScript zu schreiben. In meinem Programm hat es ein Text-Feld, dass "result" heisst.
Jetzt habe ich folgenden Code eingegeben:
on end editing theObject
if name of theObject is "result" then
set theURL to content of text field "result" of window "window"
Wenn ich das Programm jetzt starte, und einen Text eingebe, kommt folgende Fehlermeldung:
Can’t make item id 5 into type string. (-1700)
Jetzt habe ich folgenden Code eingegeben:
on end editing theObject
if name of theObject is "result" then
set theURL to content of text field "result" of window "window"
Wenn ich das Programm jetzt starte, und einen Text eingebe, kommt folgende Fehlermeldung:
Can’t make item id 5 into type string. (-1700)