Applescript with cocoa

Discussion in 'Mac Programming' started by Renmusxd, Nov 16, 2010.

  1. Renmusxd macrumors newbie

    Nov 16, 2010
    well, I would like to thank everyone ahead of time because i know you all know more then I do, and are (hopefully ) willing to help. My problem at the moment is that i'm making an application that uses Applescript in xcode (you know, an applescript project). so i'm trying to make the script set a variable to the content of a NSTextField so i wrote
    set adminPassword to contents of text field "passwordfield" of window "OnlyWindow"
    this is what all the documentation and everybody told me to do. But this line of code always makes a compiler error when i build-and-run. Does anyone have any Idea why this might happen.
    Also recently it's been telling me that when i remove this line of code and i run it, the program receives the signal : "SIGABRT" or abort. this seems to have come from nowhere.
    Any help is much appreciated, thank you!

Share This Page