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: dda <headspin@gmail.com>
Date: Thu, 26 Feb 2009 20:00:06 +0800
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; dkim=neutral (body hash did not verify) header.i=@gmail.com
Delivered-to: listarchive@realsoftware.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=SE42xaGrlmIqFvQ1AdPw1uocBKbL21FU23/urhX0kDQ=; b=s96zLOqapCw6PPzR55ap5uVWByWVvew7DapfsOpPffHHlvxpQPrO4MWqUVln4I75Uk TapoZnkBF/gpDYp3scjg09CPsTxIbGKUgSNEu2Btj23ihNKOXtzvqKp54IUgGELXULPQ 5czP/0FcVjy8WMJRhe2qLPE5z5la4EWCp/aHI=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=FMLQ+QiDJ+F50cgNg6whOi4SlTP9kx1nNr8wKe8/+BU97Gb1mYLZcRKXNXzjQJ2ifF m48ZbIxTyT3wZQD7mrcIEmI8wPyHDp4gwQrUabB01kPjJow6nat5y6dKTll9J9Qpx7lr FtANIo3VedyaeYbUBUVEShVx1N+4o6MV1MOoE=
In-reply-to: <eb8fc1930902252235s188c4febk9ada798160244ef2@mail.gmail.com>
References: <566718.64646.qm@web65602.mail.ac4.yahoo.com> <1ivqalu.1h9p6iv1mrasj9M%realbasiclists@monkeybreadsoftware.de> <eb8fc1930902252235s188c4febk9ada798160244ef2@mail.gmail.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
http://www.sungnyemun.org/downloads/OSAScript.rbp.zip

A small OSAScript class that does most of the work for you.


-- 
dda



On Thu, Feb 26, 2009 at 2:35 PM, dda <headspin@gmail.com> wrote:
> 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>
<Prev in Thread] Current Thread [Next in Thread>