running command-line programs from rev [OT]

Jan Schenkel janschenkel at yahoo.com
Mon Oct 14 05:01:01 EDT 2002


--- Dar Scott <dsc at swcp.com> wrote:
> 
> On Sunday, October 13, 2002, at 04:05 AM, David
> Vaughan wrote:
> 
> > Jan has jumped the gun slightly. You will have a
> problem if you are using 
> > 1.1.1. Shell commands in OS X are not supported
> before 1.5A7. You should 
> > be OK on this soon.
> 
> When I first got Revolution I wrote this to the
> list.  (That means tread 
> carefully.)  It is a simple shell workaround and an
> example.  It has a few 
> limitations but might work for ditto.  I welcome
> fixes.
> 
> > I know nothing about AppleScript, but with a tiny
> bit of fooling around I 
> > came up with this:
> >
> > function shellSH cmd
> >   -- Sorry, no quote marks in cmd in this version
> >   -- And shellCommand is ignored
> >   put "do shell script" & quote & cmd & quote into
> s
> >   do s as AppleScript
> >   put result() into r
> >   replace numToChar(13) with linefeed in r
> >   return r
> > end shellSH
> >
> > [snip]
> 
> Dar Scott
> 

Hi David and Dar,

So I wasn't jumping the gun _after all_ *grin*
I knew there was a workaround somewhere, even if it
involved AppleScript. And to say that a few weeks ago
I _did_ point out that it wouldn't work under MacOS X.
About time I replace my trusty ol' Performa 5200 with
one of those yummie 17inch iMacs... *drool*
Anyone have good tips on how to ask for a raise? ;-)

Yours quirkily,

Jan Schenkel.

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)

__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com



More information about the use-livecode mailing list