Return-Path: Received: from [208.97.132.5] (HELO homiemail-a71.g.dreamhost.com) by media-motion.tv (CommuniGate Pro SMTP 4.2.10) with ESMTP id 5073369 for AE-List@media-motion.tv; Thu, 16 May 2013 20:22:25 +0200 Received: from homiemail-a71.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a71.g.dreamhost.com (Postfix) with ESMTP id 71E4142829A for ; Thu, 16 May 2013 11:31:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=louai.org; h=mime-version :in-reply-to:references:from:date:message-id:subject:to: content-type; q=dns; s=louai.org; b=Ji2fSlIAFe/ZuLle38Y3NE2dmpXd 6FDSltHqKBrevYVJlOGyAsDE8UUuRjJ7ama76AIcRO+BQblZNo4cTx38I99eEMk8 6kNTQIy2XdBBvHU4gUIe8dER9e2xb7KHE577fe9041wMjHXHyCda+zcKGPrX02lw Pz5AVaUdL0KjUtQ= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=louai.org; h=mime-version :in-reply-to:references:from:date:message-id:subject:to: content-type; s=louai.org; bh=6YhOoNQ/NWYE3D4KydpPyVosXyo=; b=kK 05gQTSLzz7nPHhT3E97wBcaP4LMQ4t+6oNno5ZBR6Isw5mTeuYFZa6DOmtd8XpMq XslAA2DcYYm7dO2faZwgLCSMCKt7D5+PkdrefB4yRrR9hCrkhDW+ZcYaDNU9i3N6 JY3UqhAWZNpw9b4DsziCBOmxekrczvEeXLi76vuME= Received: from mail-la0-f44.google.com (mail-la0-f44.google.com [209.85.215.44]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: me@louai.org) by homiemail-a71.g.dreamhost.com (Postfix) with ESMTPSA id 1C091428080 for ; Thu, 16 May 2013 10:57:47 -0700 (PDT) Received: by mail-la0-f44.google.com with SMTP id fr10so3330430lab.3 for ; Thu, 16 May 2013 10:57:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=zYrrUEY36IJRTGNxeYWzfOxor1TdorY9G/wndxW60+k=; b=BB4IBiVnQ2wUirTDcTHzmBrfbP0RqAVDuuf9O9NNQluBfXKa+Xy+CWmPrCr2ZrIW6j a85P48woOBDkNEZYdbcqhrJu0zdKUhkbAkawTGHMRb1wWWSI6B4G6zKGOVWj2R0D+Zi3 Nhs0L2WLVD5T8SoHOYVjMzZL7+M0qSNckOOspYpZm5QDL2v+WQ6gve+mdi7BHYt/AnnQ s3dpln9d95WTMZ9TfYbZSDnEpExuTvvNK6cpWb9BYPDauwANG+3PaLQi9b57/Ker0XJZ rs9dUUT9U2FgIQY9J/+EezMgG3IlWCcCGvENZnaSkYaw00MMGaVQG2k1MZQK8Uco+woh bfNA== X-Received: by 10.152.37.196 with SMTP id a4mr20912045lak.55.1368727065803; Thu, 16 May 2013 10:57:45 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.75.8 with HTTP; Thu, 16 May 2013 10:57:15 -0700 (PDT) In-Reply-To: References: From: Louai Abu-Osba Date: Thu, 16 May 2013 13:57:15 -0400 Message-ID: Subject: Re: [AE] executing an AE script from Python 2.7 To: After Effects Mail List Content-Type: text/plain; charset=ISO-8859-1 Solved, turned out I needed to escape the slashes in the filepath. On Wed, May 15, 2013 at 12:33 PM, Louai Abu-Osba wrote: > 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 > > +---End of message---+ > To unsubscribe send any message to