I am trying to get my first AppleScript Application going with xCode and I can’t get past my first hurdle.
I have a textField in the default window titled “Server Launcher” with an Ok button on it and everytime I click ok I get:
following is the code:
-- ServerLauncher.applescript
-- ServerLauncher
-- Created by Jeffery Fernandez on 24/05/09.
-- Copyright 2009 Jeffery Fernandez All rights reserved.
on clicked theObject
set contents of text field "userFullName" of window "Server Launcher" to "Jeffery Fernandez" as string
tell window "Server Launcher"
#set the contents of text field "userFullName" to "Jeffery Fernandez"
end tell
end clicked
From what I have understood so far, the interface is made of containers which are:
Window > View > TextField
I have put the name of the TextField in the “Interface Builder Identity”. Have I got that wrong?
Any help appreciated.
cheers,
Jeffery
Model: MacBookPro
Browser: Firefox 3.0.10
Operating System: Mac OS X (10.5)