Article View: adobe.photoshop.scripting
Article #408Re: How can I make system calls?
From: xbytor
Date: Thu, 22 Jan 2009 08:36
Date: Thu, 22 Jan 2009 08:36
12 lines
1277 bytes
1277 bytes
Vlad_Dumitrascu@adobeforums.com wrote: > Another way I found while looking online is to create a batch file from this script, run it, and delete it when done. Code looks like this: > There is a problem with this. The bat.execute() does not block. The script will start running in parallel to the PS process. Sometimes that matters, sometimes it doesn't. The problem here is that you may be deleting the batch file before it has finished executing. cmd.exe does not like that :) Making synchronous execute() calls requires a bit of work to get right. -X
Technical Details
Message-ID:
<D89FAC66B961F0FD307BFBF402EFD387@in.webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b77f23.-1@webcrossing.la2eafNXanI> <59b77f23.1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f5839,51dd37749fdc9ca4 X-Google-Attributes: gidf5839,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: xbytor@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.photoshop.scripting Subject: Re: How can I make system calls? Message-ID: <D89FAC66B961F0FD307BFBF402EFD387@in.webcrossing.la2eafNXanI> Date: Thu, 22 Jan 2009 00:36:18 -0800 References: <59b77f23.-1@webcrossing.la2eafNXanI> <59b77f23.1@webcrossing.la2eafNXanI> Lines: 16 User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit