Thanks Norman and dda,
Working great.
Thanks again.
Lennox
--- On Wed, 2/25/09, dda <headspin@gmail.com> wrote:
> From: dda <headspin@gmail.com>
> Subject: Re: Help please: Creating an AppleScript programatically and running
> it
> To: "REALbasic NUG" <realbasic-nug@lists.realsoftware.com>
> Date: Wednesday, February 25, 2009, 10:35 PM
> Dim sh As New Shell
>
> sh.Execute "osascript -e 'tell application
> ""Finder""' -e ""
> activate"" -e ' display dialog
> ""Now is "" & (current date)' -e
> ""end
> tell"""
>
>
>
> --
> dda
>
>
>
> On Thu, Feb 26, 2009 at 11:53 AM, Christian Schmitz
> <realbasiclists@monkeybreadsoftware.de> wrote:
> > Lennox Jacob <lenpartico@yahoo.com> wrote:
> >
> >> Hello,
> >>
> >> I know how to create an Applescript with
> ScriptEditor saving it as a
> >> script, adding it to the project and calling it.
> >>
> >> What I want to do is to Create the Applescript and
> run it programatically.
> >
> > Take a look on the AppleScriptMBS class:
> >
> >
> http://www.monkeybreadsoftware.de/pluginhelp/class-applescriptmbs.shtml
> >
> > Or try it yourself like this:
> >
> > dim a as new AppleScriptMBS
> > dim lines(-1) as string
> >
> > lines.Append "tell application
> ""Finder"""
> > lines.Append " activate"
> > lines.Append " display dialog
> ""Now is "" & (current date)"
> > lines.Append "end tell"
> >
> > a.Compile Join(lines, EndOfLine.Macintosh)
> > a.Execute
> >
> > Greetings
> > Christian
> >
> >
> > --
> > Over 1100 classes with 22000 functions in one
> REALbasic plug-in.
> > The Monkeybread Software Realbasic Plugin v9.0.
> >
> >
> <http://www.monkeybreadsoftware.de/realbasic/plugins.shtml>
> >
> > _______________________________________________
> > Unsubscribe or switch delivery mode:
> >
> <http://www.realsoftware.com/support/listmanager/>
> >
> > Search the archives:
> >
> <http://support.realsoftware.com/listarchives/lists.html>
> >
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
|