realbasic-nug
[Top] [All Lists]

Re: Help please: Creating an AppleScript programatically and running it

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Help please: Creating an AppleScript programatically and running it
From: Lennox Jacob <lenpartico@yahoo.com>
Date: Thu, 26 Feb 2009 04:30:34 -0800 (PST)
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com; domainkeys=hardfail (test mode) header.From=lenpartico@yahoo.com
Delivered-to: listarchive@realsoftware.com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=vSxWozV8OrotByHazzlZ0O8TF4AXtrVU+GKd/krs8u5GA9q75VutSmLM+pfHFgbNP+iCOnmbUmdOyq59e9bvuidnh+Six0QARF4lepX3aBAg28xt9177PiOyKrQs+lXHy0vAVKuUxiqj41jwq5mOU88WVU8f3rX8mjcWKgvyp28=;
Domainkey-status: bad (test mode)
In-reply-to: <eb8fc1930902252235s188c4febk9ada798160244ef2@mail.gmail.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
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>


<Prev in Thread] Current Thread [Next in Thread>