tell application "Finder" set anOutFolder to "out" set aProjectsFolder to "projects" set anExtension to "png" -- get path of the current folder set aCurrent to get folder of (path to me) as string -- define paths to the folders set aSrcFolder to aCurrent & aProjectsFolder as alias set aDstFolder to aCurrent & anOutFolder as alias -- enumerate projects in the source folder set aList to every file of (aSrcFolder as alias) repeat with i from 1 to number of items in aList set aFile to item i of aList -- process project-files only if the name extension of the aFile is "box3d" then -- append the name of file to the path of the destination folder set aDestPath to aDstFolder & (name of the aFile as string) -- convert destination path to POSIX style set aDst to the POSIX path of (aDestPath as string) & "." & anExtension -- call Box Shot 3D, see the user manual for commands tell application "Box Shot 3D" activate open aFile -- load project set target quality to 1 with timeout of 10000 seconds render to aDst -- render end timeout quit -- quit end tell end if end repeat end tell