Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.sys.mac.system > #58848

Re: Couple of Xcode questions

From Alan Baker <alangbaker@telus.net>
Newsgroups comp.sys.mac.system
Subject Re: Couple of Xcode questions
Date 2014-04-24 01:47 -0700
Organization Datemas.de http://www.news.datemas.de
Message-ID <ljaj3e$edn$1@news.datemas.de> (permalink)
References (6 earlier) <53580c9c$0$46345$c3e8da3$a9097924@news.astraweb.com> <lj9iu5$m6v$1@news.datemas.de> <53586d07$0$10620$c3e8da3$33881b6a@news.astraweb.com> <lja25i$gc2$1@news.datemas.de> <53589695$0$10067$c3e8da3$69010069@news.astraweb.com>

Show all headers | View raw


On 2014-04-24 04:44:04 +0000, JF Mezei said:

> On 14-04-23 23:58, Alan Baker wrote:
> 
>> So use AppleScript Editor.
> 
> Repeating for the Xth time: AppleScript Editor does not allow building
> against interface builder. You need Xcode for that.

Why do you care?

You have a VERY NARROW task.

You want to send text strings to a serial port and have it 
auto-increment and then pause for you to hit OK.

Read this very carefully:

I have already coded pretty much all of it in AppleScript Editor.

The SerialPort scripting addition lists my available serial ports.

I need to code to open a port.

I get a dialog box that shows me the number the script thinks it should 
start with (based on a persistent property store with the compiled app).

I hit return.

I need to code the sending of the text to the serial port.

It increments the number

And repeats.

Hit "Cancel" in the dialog and the program ends.

Done.

> 
> You need Xcode to link the properties defined in Applescript to the
> fields in interface builder, and the buttons in interface builder to the
> "on" code blocks in AppleScript.
> 
> Unless of fcourse I read wrong and that capability also exists in
> AppleScript Editor along with all the AppleScriptObjC extensions needed
> to work with interface builder's Cocia interface.
> 
> 
> BTW, Xcode does seem to find the osax in /Library/ScriptAdditions
> without having to add it to the project. Not very obvious in a IDE where
> you are expected to explicitely specify all the libraries a project uses.
> 
> Will now have to try to run this on the server where there are real
> serial ports.
> 
> But now, I have to figure out a way to bind the "return" key to a
> button. IT seems to want it binded to a text field.

Back to comp.sys.mac.system | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Couple of Xcode questions JF Mezei <jfmezei.spamnot@vaxination.ca> - 2014-04-22 01:57 -0400
  Re: Couple of Xcode questions JF Mezei <jfmezei.spamnot@vaxination.ca> - 2014-04-22 03:20 -0400
    Re: Couple of Xcode questions JF Mezei <jfmezei.spamnot@vaxination.ca> - 2014-04-22 03:56 -0400
      Re: Couple of Xcode questions Alan Baker <alangbaker@telus.net> - 2014-04-23 10:05 -0700
  Re: Couple of Xcode questions Lewis <g.kreme@gmail.com.dontsendmecopies> - 2014-04-22 13:58 +0000
    Re: Couple of Xcode questions Don Bruder <dakidd@sonic.net> - 2014-04-22 09:11 -0700
      Re: Couple of Xcode questions nospam <nospam@nospam.invalid> - 2014-04-22 12:20 -0400
        Re: Couple of Xcode questions JF Mezei <jfmezei.spamnot@vaxination.ca> - 2014-04-22 15:21 -0400
          Re: Couple of Xcode questions nospam <nospam@nospam.invalid> - 2014-04-22 15:36 -0400
            Re: Couple of Xcode questions JF Mezei <jfmezei.spamnot@vaxination.ca> - 2014-04-22 16:10 -0400
              Re: Couple of Xcode questions nospam <nospam@nospam.invalid> - 2014-04-22 16:43 -0400
          Re: Couple of Xcode questions Alan Baker <alangbaker@telus.net> - 2014-04-23 10:11 -0700
            Re: Couple of Xcode questions JF Mezei <jfmezei.spamnot@vaxination.ca> - 2014-04-23 14:55 -0400
              Re: Couple of Xcode questions Alan Baker <alangbaker@telus.net> - 2014-04-23 16:38 -0700
                Re: Couple of Xcode questions JF Mezei <jfmezei.spamnot@vaxination.ca> - 2014-04-23 21:46 -0400
                Re: Couple of Xcode questions Alan Baker <alangbaker@telus.net> - 2014-04-23 20:58 -0700
                Re: Couple of Xcode questions JF Mezei <jfmezei.spamnot@vaxination.ca> - 2014-04-24 00:44 -0400
                Re: Couple of Xcode questions Alan Baker <alangbaker@telus.net> - 2014-04-24 01:47 -0700
                Re: Couple of Xcode questions JF Mezei <jfmezei.spamnot@vaxination.ca> - 2014-04-24 03:49 -0400
                Re: Couple of Xcode questions Paul Sture <nospam@sture.ch> - 2014-05-10 19:13 +0200
                Re: Couple of Xcode questions Michael Vilain <vilain@NOspamcop.net> - 2014-05-10 11:34 -0700
                Re: Couple of Xcode questions Lewis <g.kreme@gmail.com.dontsendmecopies> - 2014-05-11 15:39 +0000
      Re: Couple of Xcode questions Lewis <g.kreme@gmail.com.dontsendmecopies> - 2014-04-23 12:43 +0000

csiph-web