I have 3 image jpg (750x1000 pixel) like below: (they placed in the same folder)
https://forums.adobe.com/servlet/JiveServlet/showImage/2-9057348-1040679/11+[login to view URL]
https://forums.adobe.com/servlet/JiveServlet/showImage/2-9057348-1040680/12+[login to view URL]
https://forums.adobe.com/servlet/JiveServlet/showImage/2-9057348-1040681/121+[login to view URL]
I want a script can open each jpg -> trace image with preset "jobtitle" -> expand it -> remove all black color (select black color, menu select -> same -> filter & stroke -> delete ) -> save like png (with the same name and 1500x2000px) -> close -> repeat with other jpg.
[login to view URL]%[login to view URL]
This is my code:
====================================================================
tell application "Finder"
set theFolder to alias (POSIX file "/Users/thaian/Downloads/Working/DOWNLOADED/png2")
set theFiles to every file of theFolder
end tell
tell application "Adobe Illustrator"
set doc to current document
repeat with aFile in theFiles
set placedRef to make new placed item in doc with properties {file path:aFile as string}
set traced to trace placed placedRef
tell traced
tell tracing
tell tracing options
load preset presetname "jobtitle"
end tell
#do script "BUOC 3" from "BaoNam"
#set traced to expand tracing
end tell
end tell
# set traced to expand tracing of traced of placedRef -- **** when I uncomment this line, AI is crashed and must be restart, I don't know why? ****
# do script "BUOC 3" from "BaoNam"
end repeat
export current document to file pathString as PNG24 with options {class:PNG24 export options, horizontal scaling:200.0, vertical scaling:200.0, saving as HTML:false}
#close current document saving no
end tell
==================================================================
Who can finish this? I will pay.
Thank you