Sg2.9
Starup scripts folder
Recent RSS
Starup scripts folder
From:  hekama
Date:  5. May 2008, 13:07

Would it be possible to have a folder for scripts that run automatically on Illustrator start up?

Re: Starup scripts folder
From:  Jürg Lehni
Date:  6. May 2008, 11:34

This will be supported in the new upcoming 2.1 release. Stay tuned.

Re: Starup scripts folder
From:  hekama
Date:  6. May 2008, 15:07

Ok, great!

This works now:

script.onStart = function(){
print("script starts!");
}

This will works with 2.1?:

app.onStart = function(){
print("Illustrator starts!");
}

or perhaps, more logical...

scriptographer.onStart = function(){
print("Scriptographer starts!");
}

Re: Starup scripts folder
From:  Jürg Lehni
Date:  6. May 2008, 18:20

This would be very nice syntax, but it won't be done that way since that would mean Scriptographer would have to execute all scripts, or parse through them to detect this code...

The way it's done is by scanning through all scripts folders and execute anything that's called __init__.js, inspired by how Python does such things. This is not set in stone yet though... Any propositions?

PS: Thanks a lot for the kind words over at your blog! You are very welcome to write tutorials. Syntax for things improves a lot in the new version, and it will need some good documents to explain how to do things the good way. I am very happy about help with this.

Re: Starup scripts folder
From:  hekama
Date:  8. May 2008, 12:37

Yes, of course... I got confused.
That sound great.

When I'm more familiar with scriptograper I'll try to do a few tutorials.

Scripts
08.08.14, 15:24
15.05.14, 14:23
02.03.14, 19:16
18.11.13, 14:48
22.03.13, 03:05
22.02.13, 15:45
Posts
10.01.17, 16:37
19.02.16, 06:03
19.02.16, 06:00
17.01.16, 11:00
12.01.16, 13:10
25.11.15, 08:19
Script of the Moment
Themed colours 06.08.12