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:35:44 -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=ZgrR5/C5MCI1GwjskThzzX5lMIQoy18yYV+sqxOt9RToOp2bRPq6xpNo6BnQ5FuCfAdwsvRfGSVeXZgoD0OqL+G6Q0tK3pUp47CMQLG7gfKDGGJ0SszNG4yANfW1g95lSY+SZgBIdpkmRTRHTu+IR3HCJ6vQx81WQt+uMVmnKj0=;
Domainkey-status: bad (test mode)
In-reply-to: <eb8fc1930902260400j39db59bfkfa57e85063f6da00@mail.gmail.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Thanks for the OSAScript class, dda


--- On Thu, 2/26/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: Thursday, February 26, 2009, 4:00 AM
> 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>


      

_______________________________________________
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 13:39:04 +0100
Delivered-To: listarchive@realsoftware.com
Received: by 10.100.124.16 with SMTP id w16cs86334anc;
        Thu, 26 Feb 2009 04:40:08 -0800 (PST)
Received: by 10.231.19.204 with SMTP id c12mr1909741ibb.5.1235652008426;
        Thu, 26 Feb 2009 04:40:08 -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 p30si5821283qbp.22.2009.02.26.04.40.06;
        Thu, 26 Feb 2009 04:40:08 -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-ipt.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­vanced107.inmotionhosting.com)
        by advanced107.inmotionhosting.com with esmtp (Exim 4.69)
        (envelope-from <realbasic-nug-bounces@lists.realsoftware.com>)
        id 1LcfW5-0001A1-1t; Thu, 26 Feb 2009 04:39:05 -0800
Received: from smtprelay08.ispgateway.de ([80.67.29.8])
        by advanced107.inmotionhosting.com with esmtp (Exim 4.69)
        (envelope-from <realbasiclists@monkeybreadsoftware.de>)
        id 1LcfW4-00019h-68 for realbasic-nug@lists.realsoftware.com;
        Thu, 26 Feb 2009 04:39:04 -0800
Received: from [84.175.82.211] (helo=[192.168.1.80])
        by smtprelay08.ispgateway.de with esmtpa (Exim 4.68)
        (envelope-from <realbasiclists@monkeybreadsoftware.de>)
        id 1LcfW4-0000wE-9R for realbasic-nug@lists.realsoftware.com;
        Thu, 26 Feb 2009 13:39:04 +0100
To: realbasic-nug@lists.realsoftware.com (REALbasic NUG)
In-Reply-To: <F9D938BC-4002-46A7-83D1-A38AB7422A67@declareSub.com>
Subject: Re: Moving folder to the trash
From: realbasiclists@monkeybreadsoftware.de (Christian Schmitz)
Date: Thu, 26 Feb 2009 13:39:04 +0100
Message-ID: <1ivqz8g.15u3sje25lfdsM%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:

> On Feb 25, 2009, at 10:54 PM, Christian Schmitz wrote:
>
> > 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.
> >
>
> In his blog, Joe Ranieri suggests using the NSWorkspace method
> performFileOperation:source:destination:files:tag:.  Presumably that
> would be simple enough to use from a plugin.

I have a class for NSWorkspace and I can add that to my plugins easily.

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 13:54:31 +0100
Delivered-To: listarchive@realsoftware.com
Received: by 10.100.124.16 with SMTP id w16cs86595anc;
        Thu, 26 Feb 2009 04:55:38 -0800 (PST)
Received: by 10.231.12.12 with SMTP id v12mr1926963ibv.4.1235652938222;
        Thu, 26 Feb 2009 04:55:38 -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 9si5102908qbw.38.2009.02.26.04.55.35;
        Thu, 26 Feb 2009 04:55:38 -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-ipt.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­vanced107.inmotionhosting.com)
        by advanced107.inmotionhosting.com with esmtp (Exim 4.69)
        (envelope-from <realbasic-nug-bounces@lists.realsoftware.com>)
        id 1Lcfl1-0001uE-Pd; Thu, 26 Feb 2009 04:54:31 -0800
Received: from smtprelay04.ispgateway.de ([80.67.18.16])
        by advanced107.inmotionhosting.com with esmtp (Exim 4.69)
        (envelope-from <realbasiclists@monkeybreadsoftware.de>)
        id 1Lcfl0-0001u6-UU for realbasic-nug@lists.realsoftware.com;
        Thu, 26 Feb 2009 04:54:31 -0800
Received: from [84.175.82.211] (helo=[192.168.1.80])
        by smtprelay04.ispgateway.de with esmtpa (Exim 4.68)
        (envelope-from <realbasiclists@monkeybreadsoftware.de>)
        id 1Lcfl1-00044I-B6 for realbasic-nug@lists.realsoftware.com;
        Thu, 26 Feb 2009 13:54:31 +0100
To: realbasic-nug@lists.realsoftware.com (REALbasic NUG)
In-Reply-To: <eb8fc1930902260400j39db59bfkfa57e85063f6da00@mail.gmail.com>
Subject: Re: Help please: Creating an AppleScript programatically and running
        it
From: realbasiclists@monkeybreadsoftware.de (Christian Schmitz)
Date: Thu, 26 Feb 2009 13:54:31 +0100
Message-ID: <1ivqzxl.1r5bpc3hcja90M%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

dda <headspin@gmail.com> wrote:

> http://www.sungnyemun.org/downloads/OSAScript.rbp.zip
>
> A small OSAScript class that does most of the work for you.

But calls the shell class.

I know how many hours I spend for my AppleScriptMBS class to have it
encoding save and working nice with all the options.

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 13:55:06 +0100
Delivered-To: listarchive@realsoftware.com
Received: by 10.100.124.16 with SMTP id w16cs86605anc;
        Thu, 26 Feb 2009 04:56:18 -0800 (PST)
Received: by 10.231.15.74 with SMTP id j10mr1895462iba.30.1235652977675;
        Thu, 26 Feb 2009 04:56:17 -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 k29si16024644qba.12.2009.02.26.04.56.15;
        Thu, 26 Feb 2009 04:56:17 -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-ipt.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­vanced107.inmotionhosting.com)
        by advanced107.inmotionhosting.com with esmtp (Exim 4.69)
        (envelope-from <realbasic-nug-bounces@lists.realsoftware.com>)
        id 1Lcfla-0001wT-ER; Thu, 26 Feb 2009 04:55:06 -0800
Received: from smtprelay04.ispgateway.de ([80.67.18.16])
        by advanced107.inmotionhosting.com with esmtp (Exim 4.69)
        (envelope-from <realbasiclists@monkeybreadsoftware.de>)
        id 1LcflZ-0001wH-LF for realbasic-nug@lists.realsoftware.com;
        Thu, 26 Feb 2009 04:55:05 -0800
Received: from [84.175.82.211] (helo=[192.168.1.80])
        by smtprelay04.ispgateway.de with esmtpa (Exim 4.68)
        (envelope-from <realbasiclists@monkeybreadsoftware.de>)
        id 1Lcfla-0004nn-HV for realbasic-nug@lists.realsoftware.com;
        Thu, 26 Feb 2009 13:55:06 +0100
To: realbasic-nug@lists.realsoftware.com (REALbasic NUG)
In-Reply-To: <3E3F13B9-9E38-4DB4-B104-73EA46E4D177@gsco.de>
Subject: Re: "Embedded" font?
From: realbasiclists@monkeybreadsoftware.de (Christian Schmitz)
Date: Thu, 26 Feb 2009 13:55:06 +0100
Message-ID: <1ivqzz4.vyeh351r00w9nM%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

Frank Bitterlich <bitterlich2@gsco.de> wrote:

> Hi,
>
> is there a way to include a font in an application (Mac OS X only) and
> using that in the app, without copying it to the ~/Library/Fonts
> folder? I think I saw some apps doing that, but I'm not sure...

My plugin has functions to activate a font with a folderitem.
So you don't need to copy it.

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>


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