Running AS when application is being launched?

Hello,

Being quite new to all this, I’ve put together a few scripts that I would like to run when a specific program is being launched. Is this possible, and if so; how do I do it?

Thanks in advance!

Oyvind

This might be one way to do it:

http://prefabsoftware.com/uiactions/

I don’t own and haven’t used this program, but it seems that it can attach applescripts to applications and even parts of an application. Free demo is available.

Vince

Without additional software, I can only think of two ways to do this.

One would be to create a stay-open app that continually looks to see if application is running and if so run some commands. That would be tricky as you would only want it to run the commands once.

The other is to create a script that you use (or instruct others to use) to launch the app, instead of launching the app directly. You could then have the script launch the app and do whatever other commands you want it to do. It does mean that if someone didn’t follow instructions and launched the app directly, your other commands would not run.