Skip to main content
Known Participant
May 15, 2024
Question

Looking for a valid copy of SaveAI_to_PDF script

  • May 15, 2024
  • 1 reply
  • 1204 views

Hi Everybody,

 

As many of you might know, AI files don't show previews/quick look on Finder due to security issues. I download several AI files from Adobe Stock daily so this is a real nagging pain for sorting. No, I'm not going to use Bridge or any app, just not my workflow, thank you. 

 

I've been through the gamut, old 2010 scripts to Github respositories to Chat GPT automator instructions (that don't work). Modified vesions of the script...

 

I just need the actual script to create a folder automation so any AI file that lands in the downloads folder is converted to a layered PDF. 

 

Is there a viable copy of this script somewhere so I can run this process in my downloads folder without having to actively? 

This topic has been closed for replies.

1 reply

Max DTAuthor
Known Participant
May 15, 2024

I managed to prompt a valid one on chat (attached - need to change extension to .jsx to use), but I can't seem to get the thing to load in automator the right way. It might have a hard time locating Illustrator or compiling it natively. Still trying to make a folder automatically convert an AI file into layered PDF for file visibility. 

jduncan
Community Expert
Community Expert
May 15, 2024

What type of computer system are on you using (macOS or Windows)? I assume you are on a Mac from some of the terminology you are using... If so, there are some options to use Folder Actions to process file with a JSX script. Just let us know for certain your system and then we can help more.

Max DTAuthor
Known Participant
May 15, 2024

Hey jduncan,

 

I'm in Automator for Sonoma. I can get the AI->PDF script to work, but the automator using applescript isn't picking up the automation:

 

-- AppleScript to run ExtendScript (JSX) in Adobe Illustrator

on adding folder items to theFolder after receiving theNewItems
tell application "Adobe Illustrator"
activate
-- Path to your ExtendScript (JSX) file
set jsxFile to POSIX file "~/Documents/05_Scripts/convert_to_layered_pdf.jsx"
-- Execute the ExtendScript file
do script jsxFile language javascript
end tell
end adding folder items to

 

I've got this script loaded into Automator's ("Folder Action") Macro/Preset or whatever it's called for the Downloads folded. But upon running it from the Finder>Services drop down...it's just dead. So I know it's not the JSX file. I just can't seem to get finder to hollar at Illustrator to run the JSX folder script.