in the curse of this day, we found a better way...
Try

do fld "myscript"
or any other container like a customproperty...
you can stock script fields in a group of cards too...
There's examples in my xos site: http://www.

What's nice about it is that you just paste the script in a field
without having to mess with the quotes or returns in a metacard script...

It would be nice to do like in C where you declare a portion in
asm or another preprocessor language). Or like Hypercard, declare
the script for another language.

The problem is that if your application is not recognized, compared
to a regular applet, your script will ask you each time the location
of your app... Two solutions: make a path field that metacard/applescript
updates or launch an applet which will remember (but it could get messy if
you change the applet's name!)

http://www.monsieurx.com/xos/stacks/index.html
loot at extraOSA.sit, extra languages.sit and xos basics is required for
those to run with less error dialogs.
Look at the readme and anything that looks like help for more info (there's
plenty but not in order yet if ever
whence Apple puts Hypercard back to production!

Should be viewable in MC no prob.
It's not MC tested. But it could work with a few adjustments.

cheers
Xavier




> should be:
>
> get "tell application" && quote & "myapp" & quote && "to activate"
> do it as applescript
>
> that works great!
>
> > -----Original Message-----
> > From: Sjoerd Op 't Land [mailto:[EMAIL PROTECTED]]
> > Sent: 26 September 2001 23:22
> > To: [EMAIL PROTECTED]
> > Subject: Re: do ... as applescript -> "alternative language not found"
> >
> >
> > Rodney Tamblyn wrote/ schreef:
> >
> > > In MC 2.4.1, Mac OS 9.1:
> > >
> > > put "tell application"&&quote&"Finder"&quote&return&\
> > > "activate"&return&\
> > > "end tell" into cmd
> > > do cmd as applescript
> > > put the result
> > >
> > > returns result "alternative language not found"
> > >
> > > alternativelanguages() returns "applescript"
> > >
> > > Any idea what I'm doing wrong here?
> > >
> > > Rodney
> > Maybe put applescript in quotes?
> >
> > Regards, / Groeten,
> > Sjoerd
> >
> >
> > Archives: http://www.mail-archive.com/[email protected]/
> > Info: http://www.xworlds.com/metacard/mailinglist.htm
> > Please send bug reports to <[EMAIL PROTECTED]>, not this list.
> >
>
>
> Visit us at http://www.clearstream.com
>
> IMPORTANT MESSAGE
>
> Internet communications are not secure and therefore Clearstream
> International does not
> accept legal responsibility for the contents of this message.
>
> The information contained in this e-mail is confidential and may
> be legally privileged. It is
> intended solely for the addressee. If you are not the intended
> recipient, any disclosure,
> copying, distribution or any action taken or omitted to be taken
> in reliance on it, is
> prohibited and may be unlawful. Any views expressed in this
> e-mail are those of the
> individual sender, except where the sender specifically states
> them to be the views of
> Clearstream International or of any of its affiliates or subsidiaries.
>
> END OF DISCLAIMER
>
> Archives: http://www.mail-archive.com/[email protected]/
> Info: http://www.xworlds.com/metacard/mailinglist.htm
> Please send bug reports to <[EMAIL PROTECTED]>, not this list.
>
>


Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.

Reply via email to