I am just starting to learn AppleScript Studio, and I ask what is wrong with this simple little script written in ProjectBuilder:
-- Applescript Studio App.applescript
-- Applescript Studio App
on clicked theObject
tell window of theObject
try
set theFirst to contents of text field "txtfield1" as text
set contents of text field "txtfield2" to theFirst
on error set contents of text field "txtfield2" to 0
end try
end tell
end clicked
on should quit after last window closed theObject
return true
end should quit after last window closed
I made a small thing with Interface builder, with two text fields both names as written above. When I try to build this, it says "Build failed (see build log for details) Could somebody help me out here?