Skip to main content
Known Participant
June 25, 2021
Answered

run script on startup

  • June 25, 2021
  • 2 replies
  • 4687 views

how can i run script automatically at strat of illustrator? 

This topic has been closed for replies.
Correct answer Charu Rajput

https://www.dropbox.com/s/ens3kg72h7wlsqg/nis.jsx?dl=0


@aviel222 

Try to replace your existsing code with

if (app.documents.length) {
	app.executeMenuCommand('Print')// JavaScript Document
	//Here, add your more code if exists
}
// JavaScript Document

2 replies

Disposition_Dev
Legend
June 25, 2021

Locate your version of Adobe Illustrator in your Applications Folder. inside the app folder, create a new folder called "Startup Scripts". Then you can place one or more .jsx files into that folder and they will run automatically whenever illustrator is launched. 

 

GerssonDelgado
Inspiring
June 25, 2021

hey @Disposition_Dev ! it works good But,

every time I run another script, Startup Script also appears 

How Can I stop this, Only needs run it, when ilustrator Starts 

Disposition_Dev
Legend
June 25, 2021

Hmm. I'm not sure. Any scripts in that folder should only get executed when illustrator is launched.. 

rcraighead
Legend
June 25, 2021

On Mac I use Keyboard Maestro to trigger a script on startup or whenever Illustrator launches.