Skip to main content
Known Participant
January 26, 2023
Answered

Run a script js on startup without any open document

  • January 26, 2023
  • 2 replies
  • 1672 views

Bonjour à tous,

J'ai créé un script qui me permet de choisir quel document ouvrir. Mon problème est que j'aimerais que ce script s'éxécute automatiquement dès le lancement de Illustrator quand aucun document n'est encore ouvert.

Bonne journée
PM

This topic has been closed for replies.
Correct answer CarlosCanto

create a Startup Scripts folder in the default Illustrator folder and place the scripts you want to run there

 

C:\Program Files\Adobe\Adobe Illustrator 2023

 

more info on startup scripts here

https://ai-scripting.docsforadobe.dev/introduction/executingScripts.html

2 replies

CarlosCanto
Community Expert
CarlosCantoCommunity ExpertCorrect answer
Community Expert
January 26, 2023

create a Startup Scripts folder in the default Illustrator folder and place the scripts you want to run there

 

C:\Program Files\Adobe\Adobe Illustrator 2023

 

more info on startup scripts here

https://ai-scripting.docsforadobe.dev/introduction/executingScripts.html

Met1
Legend
January 26, 2023

Ah! I was over-complicating it, I thought we needed to script Illy opening too.

CarlosCanto
Community Expert
Community Expert
January 26, 2023

it happens, you were going the generally speaking way (which it may work) but illustrator has a way to natively handles startup scripts.

Met1
Legend
January 26, 2023

Mac or PC?

polotroboAuthor
Known Participant
January 26, 2023

Hi @Met1 I'm on PC windows 11 Illustrator 26.0.3
PM

Met1
Legend
January 26, 2023

Take a look at 4 here - https://www.guidingtech.com/top-ways-to-run-apps-at-startup-on-windows-11/

I don't know how to do it, but it's possible you can have a PowerShell script launch Illy and then your script.