• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
1

Run script automatically when file is in hotfolder

Engaged ,
Mar 22, 2021 Mar 22, 2021

Copy link to clipboard

Copied

I created a scritp that saves file from the input folder as a pdf in the output folder. Is it possible to run the script automatically when the file appears in the input folder?

Thanks in advance!

TOPICS
Scripting

Views

1.0K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 24, 2021 Mar 24, 2021

Hello @milevic 

Following link has a script which do similar to the what is your requirement but this is for the photoshop. You can try it by changing required things.

 

https://community.adobe.com/t5/photoshop/automatically-run-scripts-on-files-in-a-specific-folder/td-p/8863088 

 

I hope this will give you idea to start.

NOTE: I haven't tested myself.

Votes

Translate

Translate
Adobe
Explorer ,
Mar 22, 2021 Mar 22, 2021

Copy link to clipboard

Copied

You can create watch folders in various ways on Mac and Windows. On Mac I think I used Automator. "Mac Automator watch folder" should bring up plenty of options/ideas. On Windows I think I did it via Powershell/the terminal.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 22, 2021 Mar 22, 2021

Copy link to clipboard

Copied

you'll likely need to do some combination of automator and applescript (or the pc equivalent which i'm not familiar with).

 

I'm not entirely sure how you'd trigger the script. you could set up an action in illustrator that executes the script, and you could set a hotkey to that action, and you could use automator or applescript i believe to send some keystrokes to illustrator to trigger the action.

 

And as AndrewH said, you can attach "Folder Actions" to your hot folder so that when a new file is added, the folder action will execute and trigger your applescript which triggers your action which triggers your script.

 

If there's a less convoluted way to do this, i'd love to hear about it. Because honestly all of that is a bit ridiculous.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 22, 2021 Mar 22, 2021

Copy link to clipboard

Copied

If you're on Mac "Keyboard Maestro" is another way to setup "Watched Folders" and much more.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 23, 2021 Mar 23, 2021

Copy link to clipboard

Copied

I achieved something like this by using a custom Adobe Bridge script that listened for folder changes, if a file of a certain format was found it ran a script and then moved the file to a completed folder. Worked well for what i required.  If you're familiar with scripting, it maybe a good option.

 

Believe this maybe the post or similar that i  used to learn it

https://community.adobe.com/t5/photoshop/watch-folder/m-p/4574941

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Mar 23, 2021 Mar 23, 2021

Copy link to clipboard

Copied

I will try to be more precise. 

The AI is installed on the server computer (MAC), the script I created automatically opens all the files from the input folder, converts them and saves them to a specific location, and that works perfectly when i access script manualy.  My problem is that I don't know how to trigger the script every time a file arrives in the input folder. An additional limitation is that due to the company's policy I cannot install  any additional software.

 

Thank you all for your dedication. 

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 24, 2021 Mar 24, 2021

Copy link to clipboard

Copied

LATEST

One thing. AI is not allowed to be installed in a server environment. Installation is for single user only. Please read the license carefully.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 24, 2021 Mar 24, 2021

Copy link to clipboard

Copied

Hello @milevic 

Following link has a script which do similar to the what is your requirement but this is for the photoshop. You can try it by changing required things.

 

https://community.adobe.com/t5/photoshop/automatically-run-scripts-on-files-in-a-specific-folder/td-... 

 

I hope this will give you idea to start.

NOTE: I haven't tested myself.

Best regards

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines