Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > microsoft.public.scripting.vbscript > #11474

Re: Does VBScript run on Mac OS X?

From "Mayayana" <mayayana@invalid.nospam>
Newsgroups microsoft.public.scripting.vbscript
Subject Re: Does VBScript run on Mac OS X?
Date 2016-12-19 21:04 -0500
Organization A noiseless patient Spider
Message-ID <o3a3k4$rgo$1@dont-email.me> (permalink)
References <24zdj.24981$Wt7.24759@newsfe14.phx> <e521f1eb-c990-4acb-951d-4c7a9038a865@googlegroups.com>

Show all headers | View raw


<alexdesanmartin@gmail.com> wrote

| I know that I can't run .vbs directly on my mac without bootcamp or other 
virtual machine. Is there any way on macOS 10.12.3 to convert .vbs to 
.scptd?
|

   By definition script is interpreted. VBS is interpreted
by Windows Script Host. In IE it's intrerpreted by IE.
Likewise with javascript. Perl can be run on Windows
but the Perl interpreter must be installed.

    I have no idea what scptd is. Mac script? My
impression was that Macs only had "Apple script",
which seems to be simple commands written as
sentences. Someone would have to write a VBS
interpreter if you want to run it on a Mac. Though
Windows Script host can be installed under WINE
in Linux, so that's also a possibility.

  The next issue you'd run into would be what to
do with it once you got it working. VBS is designed for
Windows and gets much of its power from COM
libraries. So you'd need to install the basics,
like scrrun.dll. Then you'd also have to figure out
how to use COM libraries on the Mac. What makes VBS
in WSH so different from browser script is the function
CreateObject. That allows VBS to load and use any
compatible COM object. But COM libraries are Windows.
They usually call Win32 API functions and/or other
Windows libraries. So it gets complicated. It's sort
of like asking if you can speak English in France. You
can, but it will only be useful when you find English-
speaking French people to talk to. 

Back to microsoft.public.scripting.vbscript | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: Does VBScript run on Mac OS X? alexdesanmartin@gmail.com - 2016-12-19 15:38 -0800
  Re: Does VBScript run on Mac OS X? "Mayayana" <mayayana@invalid.nospam> - 2016-12-19 21:04 -0500
    Re: Does VBScript run on Mac OS X? "Auric__" <not.my.real@email.address> - 2016-12-20 07:54 +0000
      Re: Does VBScript run on Mac OS X? "Mayayana" <mayayana@invalid.nospam> - 2016-12-20 10:27 -0500

csiph-web