[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [StrongED] sending PHP file to browser / star-commands

In message <dc51142a57.jim@xxxxxxxxxxxxxxxx>
          Jim Nagel <stred@xxxxxxxxxxxxxxxx> wrote:

> > In message <538a0009-169d-5447-d613-da3adaa7599a@xxxxxxxxxxxxxxxxxx>
> >           Vince M Hudd <atdotcodotuk@xxxxxxxxxxxxxxxxxx> wrote:
> >> ...another alternative would be to issue a star command to invoke an
> >> external program that handles changing the file path to a URL, then
> >> calls either *URIdispatch or the equivalent SWI.
> Fred Graute  wrote on 17 Aug:
> > ... Here's what I threw together. Bit rough but it seems to do the
> > job. [snip] ...
> Works a treat!  Thanks, Fred.

Just realised that this can be improved by using the SaveRun function
instead of the plain Run function. SaveRun will save the file first then
execute the command, so no need to click on the Save icon first.

This won't work for newly created texts until they have been saved, ie
there must be a valid filepath.

> Is it in fact possible in StrongEd to issue a star-command, as we have
> always been able to do from within Basic?

Yes, that's what Run() does. It passes its argument through OS_GSTrans
then sends the result to Wimp_StartTask.

> Anyway, thanks again, Fred.  Got this working now and it's proving a
> very handy tool.

Glad to hear it's found useful.


StrongED Developer

To unsubscribe send a mail to StrongED+unsubscribe@xxxxxxxxxxx
List archives and instructions at