Hello, I have this script, which I’m using as a droplet:
on open thisItem
set this_folder to (the POSIX path of thisItem)
set export_folder to "Macintosh HD:Users:j************:Desktop:AUTOMATOR:export"
set pdf_folder to "Macintosh HD:Users:j**********:Desktop:AUTOMATOR:PDF"
tell application "Adobe Illustrator" to open thisItem
tell application "Adobe Illustrator" to save current document in export_folder as pdf with options {class:PDF save options, PDF preset:"Low res proofing"}
tell application "Adobe Illustrator" to close current document
tell application "UltraLowPDF" to open
tell application "Finder" to move every file of folder "Macintosh HD:Users:j*********:Desktop:AUTOMATOR:PDF" to this_folder
end open
This script should do a few things:
- It creates a pdf file from an .ai file using adobe illustrator.
- It then runs that pdf file through an automator workflow, which then spits out a pdf into a folder on my desktop.
- It then moves that pdf file from the desktop, back to the folder of the original .ai file.
Every part of the script works fine except for step 3, it just seems to ignore it entirely. I’ve tried adding a delay.
I’ve tried moving files with the same method, but without any script before it, which seemed to work fine.
Where am I going wrong?
Thanks in advance!