Hey,
I'm attempting an application using Applescript in Xcode because I just can't get my head around objective-c.
So far I have a GUI with a button and a webview both linked to this code:
It compiles fine but when I click the button nothing happens.
Could someone please enlighten me?
Kind Regards
I'm attempting an application using Applescript in Xcode because I just can't get my head around objective-c.
So far I have a GUI with a button and a webview both linked to this code:
Code:
on clicked (theObject)
if the name of theObject is "loadgoogle" then
tell mainwindow
open location "http://google.com"
end tell
end if
end clicked
It compiles fine but when I click the button nothing happens.
Could someone please enlighten me?
Kind Regards