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.
I can create it, but what should I use as MacCreator and File Type and how do I
call it?
Thanks.
Lennox.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>
From Thu 26 Feb 2009 04:53:55 +0100
Delivered-To: listarchive@realsoftware.com
Received: by 10.100.124.16 with SMTP id w16cs74994anc;
Wed, 25 Feb 2009 19:55:51 -0800 (PST)
Received: by 10.231.19.72 with SMTP id z8mr1284172iba.41.1235620550780;
Wed, 25 Feb 2009 19:55:50 -0800 (PST)
Return-Path: <realbasic-nug-bounces@lists.realsoftware.com>
Received: from advanced107.inmotionhosting.com (advanced107.inmotionhosting.com
[74.124.194.228])
by mx.google.com with ESMTP id p6si4373847qbp.5.2009.02.25.19.55.48;
Wed, 25 Feb 2009 19:55:50 -0800 (PST)
Received-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) client-ip=74.124.194.228;
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
Received: from localhost ([127.0.0.1] helo=advanced107.inmotionhosting.com)
by advanced107.inmotionhosting.com with esmtp (Exim 4.69)
(envelope-from <realbasic-nug-bounces@lists.realsoftware.com>)
id 1LcXJt-0008B8-8l; Wed, 25 Feb 2009 19:53:57 -0800
Received: from smtprelay01.ispgateway.de ([80.67.18.13])
by advanced107.inmotionhosting.com with esmtp (Exim 4.69)
(envelope-from <realbasiclists@monkeybreadsoftware.de>)
id 1LcXJr-0008B3-57 for realbasic-nug@lists.realsoftware.com;
Wed, 25 Feb 2009 19:53:55 -0800
Received: from [84.175.75.136] (helo=[192.168.1.80])
by smtprelay01.ispgateway.de with esmtpa (Exim 4.68)
(envelope-from <realbasiclists@monkeybreadsoftware.de>)
id 1LcXJr-00037H-H5 for realbasic-nug@lists.realsoftware.com;
Thu, 26 Feb 2009 04:53:55 +0100
To: realbasic-nug@lists.realsoftware.com (REALbasic NUG)
In-Reply-To: <566718.64646.qm@web65602.mail.ac4.yahoo.com>
Subject: Re: Help please: Creating an AppleScript programatically and running
it
From: realbasiclists@monkeybreadsoftware.de (Christian Schmitz)
Date: Thu, 26 Feb 2009 04:53:55 +0100
Message-ID: <1ivqalu.1h9p6iv1mrasj9M%realbasiclists@monkeybreadsoftware.de>
User-Agent: MacSOUP/D-2.8.2 (Mac OS X version 10.5.6 (x86))
X-Df-Sender: 363246
X-BeenThere: realbasic-nug@lists.realsoftware.com
X-Mailman-Version: 2.1.10
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: realbasic-nug-bounces@lists.realsoftware.com
Errors-To: realbasic-nug-bounces@lists.realsoftware.com
X-AntiAbuse: This header was added to track abuse, please include it with any
abuse report
X-AntiAbuse: Primary Hostname - advanced107.inmotionhosting.com
X-AntiAbuse: Original Domain - realsoftware.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - lists.realsoftware.com
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>
From Thu 26 Feb 2009 04:54:40 +0100
Delivered-To: listarchive@realsoftware.com
Received: by 10.100.124.16 with SMTP id w16cs75002anc;
Wed, 25 Feb 2009 19:56:32 -0800 (PST)
Received: by 10.231.14.72 with SMTP id f8mr1297833iba.34.1235620591633;
Wed, 25 Feb 2009 19:56:31 -0800 (PST)
Return-Path: <realbasic-nug-bounces@lists.realsoftware.com>
Received: from advanced107.inmotionhosting.com (advanced107.inmotionhosting.com
[74.124.194.228])
by mx.google.com with ESMTP id k27si1120421qba.36.2009.02.25.19.56.29;
Wed, 25 Feb 2009 19:56:31 -0800 (PST)
Received-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) client-ip=74.124.194.228;
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
Received: from localhost ([127.0.0.1] helo=advanced107.inmotionhosting.com)
by advanced107.inmotionhosting.com with esmtp (Exim 4.69)
(envelope-from <realbasic-nug-bounces@lists.realsoftware.com>)
id 1LcXKc-0008Cr-AE; Wed, 25 Feb 2009 19:54:42 -0800
Received: from smtprelay02.ispgateway.de ([80.67.18.14])
by advanced107.inmotionhosting.com with esmtp (Exim 4.69)
(envelope-from <realbasiclists@monkeybreadsoftware.de>)
id 1LcXKa-0008Cj-Jb for realbasic-nug@lists.realsoftware.com;
Wed, 25 Feb 2009 19:54:40 -0800
Received: from [84.175.75.136] (helo=[192.168.1.80])
by smtprelay02.ispgateway.de with esmtpa (Exim 4.68)
(envelope-from <realbasiclists@monkeybreadsoftware.de>)
id 1LcXKa-0008TZ-L3 for realbasic-nug@lists.realsoftware.com;
Thu, 26 Feb 2009 04:54:40 +0100
To: realbasic-nug@lists.realsoftware.com (REALbasic NUG)
In-Reply-To: <A872C9EE-0F4E-498D-AF0C-2C5A3EAD73D1@declareSub.com>
Subject: Re: Moving folder to the trash
From: realbasiclists@monkeybreadsoftware.de (Christian Schmitz)
Date: Thu, 26 Feb 2009 04:54:40 +0100
Message-ID: <1ivqayv.2xlo8zccakghM%realbasiclists@monkeybreadsoftware.de>
User-Agent: MacSOUP/D-2.8.2 (Mac OS X version 10.5.6 (x86))
X-Df-Sender: 363246
X-BeenThere: realbasic-nug@lists.realsoftware.com
X-Mailman-Version: 2.1.10
Precedence: list
Reply-To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: realbasic-nug-bounces@lists.realsoftware.com
Errors-To: realbasic-nug-bounces@lists.realsoftware.com
X-AntiAbuse: This header was added to track abuse, please include it with any
abuse report
X-AntiAbuse: Primary Hostname - advanced107.inmotionhosting.com
X-AntiAbuse: Original Domain - realsoftware.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - lists.realsoftware.com
Charles Yeomans <charles@declareSub.com> wrote:
> FSMoveObjectToTrashSync
Cool. I'll think I'll add those to my plugins.
JUst I need to find the counterpart for older systems.
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>
|