Just in case anyone besides Joe was following this thread, in lieu of
ShowURL, the following "pure" RBScript code seems to work in an IDE Script
on Mac OS X:

Dim shres As String
shres = DoShellCommand("open http://www.google.com/";)

Unfortunately, the "open" shell command does NOT work in the Windows IDE or
the Linux IDE, and I can't seem to find any other comparable shell commands
for those platforms to accomplish the same thing (without having to resort
to Context Object methods and Declares).

Why am I trying to solve this, you ask?  I would like to create a
cross-platform IDE Script that allows REALbasic developers to select an
Event or code in the Code Editor and run the script to search RBGarage.com's
database for related matches (see script attached to the feedback report).

Ah, well... Here's the Feature Request if you'd like to sign on:

<http://www.realsoftware.com/feedback/viewreport.php?reportid=ugqgzykw>

Thanks!

Regards,
Dave Wooldridge

----------------------------------------
RB Garage - http://www.RBGarage.com
The largest independent online resource
For REALbasic software developers!
----------------------------------------


> Thanks, Joe!  I had read the LR on IDE Scripts, but I guess I was hoping that
> maybe I had missed something.  ;-)
> 
> I'll definitely look into using DoShellCommand as a possible alternative
> solution.  Thanks!
> 
> --Dave
> 
> 
> 
>> On Sep 19, 2006, at 19:56 UTC, Dave Wooldridge wrote:
>> 
>>> I've been playing with IDE Scripts and always get a compiler error
>> when
>>> calling ShowURL in my IDE Script.  I've tried just plain old ShowURL
>> as well
>>> as REALbasic.ShowURL and both give compiler errors.
>> 
>> The REALbasic module doesn't exist in an RBScript.  ShowURL wouldn't
>> work unless the IDE engineers had added such a command to the IDE
>> script context.  Which they haven't done -- see the "IDE Script" entry
>> in the LR for the (documented) context methods and properties.
>> 
>>> Any ideas? Or alternative options?
>> 
>> Well, first, file a feature request; new context methods are easy to
>> add.  Second, perhaps you can use DoShellCommand as a work-around.  The
>> exact shell command would depend on the platform, but it should be
>> possible for at least OS X, and probably Linux and Windows too.
>> 
>> HTH,
>> - Joe
>> 
>> --
>> Joe Strout -- [EMAIL PROTECTED]
>> Verified Express, LLC     "Making the Internet a Better Place"
>> http://www.verex.com/
>> 

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to