Return-Path: Received: from [208.97.132.207] (HELO homiemail-a98.g.dreamhost.com) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 5072043 for AE-List@media-motion.tv; Wed, 15 May 2013 18:26:08 +0200 Received: from homiemail-a98.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a98.g.dreamhost.com (Postfix) with ESMTP id 341F02C208B for ; Wed, 15 May 2013 09:34:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=louai.org; h=mime-version:from :date:message-id:subject:to:content-type; q=dns; s=louai.org; b= po70Nq+PrtUSGEx2NWvQ9qybv5L6pyv9b1ZQGANhEDZ7sX6nSq7Lcmqklmn2UFOX 3sxa/EkkSTOOG9ite2ZL1PtYOTe4lwZeV24zqLrj/vhkdR++u0rsEMLnfxavgyEn mlixjo0hOu0trEqb47WdJqyukLFX0M4RW5tlj5F5FYk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=louai.org; h=mime-version :from:date:message-id:subject:to:content-type; s=louai.org; bh=B Fe+R6IdgUQ6m82nW8QphOuUj00=; b=kuNABFKFyDvC4vJK/vK3hlmiP7s+1qenb XnZs56biZd5U7lgUHRUE7P6Ty5MOsUt4EdV0qixDoHrU4QAvzZjvz6Mwx5vA5DBp GT4gFFn4FNvFTLEbA7F6rXHRdxFZ0iJO10FALIuNJ5mwzYqBWu6Z0rzylryfVK1R /0O7HduM5I= Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: me@louai.org) by homiemail-a98.g.dreamhost.com (Postfix) with ESMTPSA id BD2202C207C for ; Wed, 15 May 2013 09:34:09 -0700 (PDT) Received: by mail-la0-f54.google.com with SMTP id fd20so1995557lab.13 for ; Wed, 15 May 2013 09:34:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:from:date:message-id:subject:to :content-type; bh=q3zcyuoW9aza2V306YXf8fM7QdZRoPKNBkril4fcIsA=; b=iIzf7T1tns7YEnWBYlpGtrHsGvZ5LEsMJ99OtCN8a2RCmMX4NvMfrlay+kBMU7GElo LNaCKwHFmMm6JIOWRhHnApj73IErSbWspdNYjjy3rU/g+b3E8u3jcLhwsOD3wrQ+w7Rn Cttc2t7NPUWyfqY1TVsVo80LGvL/hsNJyV/rdHnRUJDWKkGYZ458QdYvkz6BOaMB/PIM 1orjewjdbxsAp1prOF8F3q0M7MtugDc1RP5rk8m06jK71SOO4H2pempZEJb3uli8J+bs z5a5jGeyE0vaHMvIW6Qz8FZs7CP8fFNgARLokueKd/fgTjTzkM/WlBOnDujogseE2wui fCig== X-Received: by 10.152.121.9 with SMTP id lg9mr18181667lab.39.1368635647742; Wed, 15 May 2013 09:34:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.75.8 with HTTP; Wed, 15 May 2013 09:33:37 -0700 (PDT) From: Louai Abu-Osba Date: Wed, 15 May 2013 12:33:37 -0400 Message-ID: Subject: executing an AE script from Python 2.7 To: After Effects Mail List Content-Type: text/plain; charset=ISO-8859-1 I'm trying to execute an AE script from Python and it doesn't appear that the script argument is passing correctly. I'm using Windows 7 with Python 2.7. If I use cmd.exe or powershell and try "afterfx -r D:\pipeline\tests\tactic_ae\hello.jsx" I get my "hello world" alert in the AE UI. However, if I try executing in Python: subprocess.call(["afterfx","-r","D:\pipeline\tests\tactic_ae\hello.jsx"]) The AE UI takes focus but no alert appears. The strange part is if I try to do something invalid like remove the -r flag: subprocess.call(["afterfx","D:\pipeline\tests\tactic_ae\hello.jsx"]) I get an AE error: After Error Can't import file "hello.jsx": unsupported filetype or extension Anyone know why the alert won't display when run from Python? Thanks! -louai