Code: Select all
C:\Adobe\After Effects 7.0\AfterFX.exe -s "alert("Hello")"
Moderator: Paul Tuersley
Code: Select all
C:\Adobe\After Effects 7.0\AfterFX.exe -s "alert("Hello")"
Code: Select all
system.callSystem('open ' + aPathToScriptApp);
Code: Select all
C:\Program Files\Common Files\Adobe\StartupScripts
I just took a look over there. Pretty cool, a bit cumbersome, esp. if you're not used to the OSX world.byronnash wrote:Over on PS-Scripts.com someone showed me a way to execute shell scripts on the mac.
I noticed that the examples over at PS-Scripts.com seemed to be sort of Windows/Mac amalgams. One of these two should work:byronnash wrote: It's tricky, but I think I have it close to working if I can get the path to AE correct.
Code: Select all
"/Applications/Adobe After Effects 7.0/Adobe After Effects 7.0.app/"
Code: Select all
"/Applications/Adobe After Effects 7.0/Adobe After Effects 7.0.app/Contents/MacOS/After Effects"
Now that I'm very curious about (AS was my first scripting language, and most of my automation solutions, apart from AE jsx's and some other stuff, are in AS). Seems to be you should be able to use AS without user-interaction. I'm guessing your solution ran a script in PS, then ran a script in AE, and the period in-between was tricky, because the AS script had to know when the first script was done. Yes?byronnash wrote:I made an applescript solution but it retained some keyboard focus during the PS execution and I can't have that.
Yeah, DUH on my part. I didn't realize that was missing from the PS command set. Bummer.byronnash wrote:I don't think that PS has the callSystem function or I would use it.
Confusing, but somewhat familiar. Interapplication Communication is one of my specialties. If it isn't obvious, I have it in my head that this can be accomplished with AS -- but it sounds like you're about ready to use a different method. Let me know if it works, and if you'd like to reconsider an applescript method. Regardless, if I can help in any way, let me know.byronnash wrote:What I plan to do is have PS write a shell script that writes a javascript that tells AE to run a another script. Confusing huh?
I totally agree. If they would get -s to work on OSX this would be cross-platform. Or moreso.byronnash wrote:This all sounds so ridiculous.
Do you mean you need user interaction during the process, or that the script kills the keyboard functionality?byronnash wrote:when the script calls a crop tool in PS that the keyboard doesn't respond.
Code: Select all
--//--//--//--// danger! off-topic code!
ignoring application responses
--tell ps to do crop stuff
end ignoring