Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

[MBS] AppleScript.script (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Previous thread: [MBS] DR - kDRBurnRequestedSpeedKey
Next thread: [MBS] New serials?


Re: [MBS] MIDI Destinations and External Devices   -   Ron Benditt
  [MBS] AppleScript.script   -   James Sentman
   Re: [MBS] AppleScript.script   -   Christian Schmitz

[MBS] AppleScript.script
Date: 04.01.04 03:43 (Sat, 3 Jan 2004 21:43:22 -0500)
From: James Sentman
Hi folks,

Been slowly integrating the AppleScript class into some of my apps now
as I was never able to get the set parameter stuff to work with
declares. (don't know what I'm doing wrong, following the documentation
from Apple as best as I can and none of my calls return any errors just
nothing changes in the script) the .Script property is read/write, but
if I have a compiled script with a valid scriptID from elsewhere and
set it to that property on a nice new AppleScript object, nothing
happens. Do I have to do something to make it accept that? Or doesn't
it work going that direction. I can take the scriptID out of an
AppleScript object and use it in other declares just fine, just can' t
put one back in.

Thanks,
James

Re: [MBS] AppleScript.script
Date: 04.01.04 18:08 (Sun, 4 Jan 2004 18:08:28 +0100)
From: Christian Schmitz
James Sentman <<email address removed>> wrote:

> Hi folks,
>
> Been slowly integrating the AppleScript class into some of my apps now as
> I was never able to get the set parameter stuff to work with declares.
> (don't know what I'm doing wrong, following the documentation from Apple
> as best as I can and none of my calls return any errors just nothing
> changes in the script) the .Script property is read/write, but if I have a
> compiled script with a valid scriptID from elsewhere and set it to that
> property on a nice new AppleScript object, nothing happens. Do I have to
> do something to make it accept that?

dim a,b as AppleScriptMBS

a=new AppleScriptMBS
a.Compile "beep"

b=new AppleScriptMBS
b.Script Script
b.Execute
MsgBox str(b.Lasterror)

-> Error -1751

Looks like each OSA Component used has it's own set of Script IDs.
So this will not work.

One question: What reason is there that you can't just work with the
AppleScriptMBS class exclusive? What do you need via Toolbox?

Mfg
Christian