| 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 14:35:09 +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=rH78YZzQ88ejNy4OXKGuLw4BsRKTxQ2OT13YuARLzIQ=; b=ce0EPjXzlaSSnx+NBSlys29RiZ8Kwd20PHXdCgMOwSiZYsOv6rTFkdnK8Xnr2xznxz 2UcitUP+OhmTlcl5346DkR1pyiO3MmkyAnC9107N+ZbXOpQ3kt0mo5GsvOlfKPJacBgT CLbtM4zp0hpQAZRccTUcmQ/+nICzOYgULBowM= |
| 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=ltSSdMS3k6H90yj1Tq+oifHfd5QKpDrquik11cECLY6Qt20yt/etPDNW2bQQzWe0av HYANU5RCnkt9QOJ8s8HrXazTfIY+YkXTYwHvBXAhXwfuCAtFvcRAtrRRaD8WtLk1ijyr KSQp1yfxPew0ZEJ5YIZzpe/oZxpoBIDAtK1HI= |
| In-reply-to: | <1ivqalu.1h9p6iv1mrasj9M%realbasiclists@monkeybreadsoftware.de> |
| References: | <566718.64646.qm@web65602.mail.ac4.yahoo.com> <1ivqalu.1h9p6iv1mrasj9M%realbasiclists@monkeybreadsoftware.de> |
| Reply-to: | REALbasic NUG <realbasic-nug@lists.realsoftware.com> |
| Sender: | realbasic-nug-bounces@lists.realsoftware.com |
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> |
|---|---|---|
| ||
| Previous by Date: | Re: EmbeddedWindowControl/ContainerControl Issue, Norman Palardy |
|---|---|
| Next by Date: | Re: Drag and drop from a RB app to the Finder, Thomas Tempelmann |
| Previous by Thread: | Re: Help please: Creating an AppleScript programatically and running it, Norman Palardy |
| Next by Thread: | Re: Help please: Creating an AppleScript programatically and running it, dda |
| Indexes: | [Date] [Thread] [Top] [All Lists] |