ShooTerKo •--->


Anmeldedatum: 21.03.2006 Beiträge: 221 Wohnort: Hamburg
|
Verfasst am: 30.03.2006 - 14:14 Titel: |
|
|
Also, gesetzt den Fall, dass das Window den Applescriptnamen "main", das Infofeld den Namen "theTextField"bekommen hat und die Combobox "myComboBox" heisst und ein action-Event auslöst, sollte folgendes funzen:
Code: | on action theObject
set choosenItem to contents of combo box "myComboBox" of window "main"
tell text field "theTextField" of window "main"
if choosenItem = "html" then
set content to "Hypertext Markup Language"
else if choosenItem = "txt" then
set content to "Plain Text"
else if choosenItem = "asp" then
set content to "Active Server Pages"
else
set content to ""
end if
end tell
end action |
Oder habe ich das Problem nicht geblickt?
CU
ShooTerKo |
|