Xojo Conferences
MBSSep2018MunichDE
XDCMay2019MiamiUSA

[MBS] Feature Request: Apple Script (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] Feature Request: Supersocket
Next thread: [MBS] 3.1pr8


Re: [MBS] MIDI Destinations and External Devices   -   Ron Benditt
  [MBS] Feature Request: Apple Script   -   Beatrix Willius
   Re: [MBS] Feature Request: Apple Script   -   Christian Schmitz
   Re: [MBS] Feature Request: Apple Script   -   Christian Schmitz
    [MBS] Re: Feature Request: Apple Script   -   Beatrix Willius

[MBS] Feature Request: Apple Script
Date: 28.01.03 09:19 (Tue, 28 Jan 2003 09:19:36 +0100)
From: Beatrix Willius
Hello,

in RB 5 the Apple Script plugin from Doug Holton does not work anymore.
Unfortunately, Doug does not support his plugins anymore. I made a feature
request to Realbasic, but I have no doubt that the earliest they will
imlement this is about RB 7.

The Apple Script plugin does the following (in pseudocode):

dim theScripttext as string
dim theError as integer
dim theResult as string

theScripttext = "tell application ..." 'text from the Applescript
theError = ASCompile theScripttext 'compile the Script and give back error
code
theResult = ASRun theScripttext 'run the Script and give back results/error
code

I have the original plugin, if you need this. Additionally I found some old
code, which was supposed to do the same. But there were some problems with
it (did not return values).

Regards

Trixi

Re: [MBS] Feature Request: Apple Script
Date: 28.01.03 21:15 (Tue, 28 Jan 2003 21:15:28 +0100)
From: Christian Schmitz
> Hello,
>
> in RB 5 the Apple Script plugin from Doug Holton does not work anymore.
> Unfortunately, Doug does not support his plugins anymore. I made a feature
> request to Realbasic, but I have no doubt that the earliest they will
> imlement this is about RB 7.

Laughing...

> The Apple Script plugin does the following (in pseudocode):

Ok. AppleScriptMBS class will be added to the next prerelease.

Mfg
Christian

Re: [MBS] Feature Request: Apple Script
Date: 29.01.03 00:24 (Wed, 29 Jan 2003 00:24:21 +0100)
From: Christian Schmitz
> Hello,
>
> in RB 5 the Apple Script plugin from Doug Holton does not work anymore.
> Unfortunately, Doug does not support his plugins anymore. I made a feature
> request to Realbasic, but I have no doubt that the earliest they will
> imlement this is about RB 7.

I think it's a good idea and the pr9 will have this code working:

dim a as AppleScriptMBS
dim b as AppleScriptMBS

a=new AppleScriptMBS

// compile this source code
a.Compile "display dialog ""Hello World!"""

b=new AppleScriptMBS

// now we copy the binary code to another object
b.Binary Binary

// and run it
b.Execute

// now decompile
MsgBox b.Source

I'll drop the plugin online later. Without docs, you can test.

mfg
Christian

-

[MBS] Re: Feature Request: Apple Script
Date: 29.01.03 09:59 (Wed, 29 Jan 2003 09:59:33 +0100)
From: Beatrix Willius
>I think it's a good idea and the pr9 will have this code working:

This is great. Thanks a lot for being so fast. Will be able to test on
Friday.

Regards

Trixi Willius