how to use applescript photoshop batch
Hello, good afternoon.
I'm trying to make an applescript that will run a batch procedure in photoshop and I don't know how to wirte its code. Let me show my script :
set pasta_evento to choose folder with prompt "Select folder of the event: "
set pasta_tratadas to (pasta_evento as string) & "Tratadas:" as alias
set arq_log to (pasta_evento as string) & "Log_Erros.txt"
tell application "Finder"
if not (exists file arq_log) then
make new file at pasta_evento with properties {name:"Log_Erros.txt"}
end if
end tell
set Fotos to files of pasta_evento as alias list
tell application "Adobe Photoshop CS6"
activate
set display dialogs to never
batch "13 x 19 + sharpen" from files Fotos from "My Actions" with options {destination:folder, destination folder:pasta_tratadas, error file:alias arq_log}
end tell
I think I have two problems. I realized that if I change the instruction as below, it works. So, there's something wrong with the variable Fotos and with the batch options (I tried to read the photoshop applescript ref, but I don't know what's wrong.
tell application "Adobe Photoshop CS6"
activate
set display dialogs to never
batch "13 x 19 + sharpen" from files {"Disk:Users:Me:Pictures:Macros:Tratadas:0002.JPG", "Disk:Users:Me:Pictures:Macros:Tratadas:0025.JPG"} from "My Actions"
Could anybody help me correct this code ? I'm not definetively an expert!
Tks !
