Article View: adobe.scripting.indesign
Article #2295VB ID3 How to run system command?
From: WellerUK
Date: Mon, 22 Dec 2008 22:04
Date: Mon, 22 Dec 2008 22:04
35 lines
1685 bytes
1685 bytes
I'm looking for help of some mighty VBS guru. I'd like to have my script run the following command: php D:\Desktop\01.php and return whatever it prints as a string. I realise this may seem little off topic in this forum, so here's the InDesign background: In mac version of my script I'm executing a shell command from javascript by 'app.doScript' this runs a line of AppleScript which executes the shell command. Then the outcome of it travels the same way to javascript and lets InDesign to process it. Something of this sort: ... shScript = "./ ~/Desktop/01.php"; asScript = "do shell script \"" + shScript + "\""; myResult = app.doScript (asScript, 1095978087); ... It's probably not a clever way of running mySQL query and retrieving the results but I couldnt think of anything better. Now I need to do the same on Windows. This is rather difficult for me, because I know very little about VBS. All google searches on the subject led to some kind of Windows Scripting Host solution which doesn't seem to be supported by InDesign VBS interpreter. Can you help me please? Thanks Weller
Technical Details
Message-ID:
<59b7561d.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,fb7dbab21d277a99,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: WellerUK@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: VB ID3 How to run system command? Message-ID: <59b7561d.-1@webcrossing.la2eafNXanI> Date: Mon, 22 Dec 2008 14:04:48 -0800 Lines: 42 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit