Help - Applescript that starts/stops 2 Apps

OK It may sound like a crap for old mac users but I'm new in mac world. I want to start/close menuet with itunes autoamticaly. Is there an applescript that allow this?

#416725

tell application "itunes" to activate

tell application "menuet" to activate

#416750

This might be better, I believe:

tell application "System Events"
if exists process "iTunes" then
tell application "iTunes" to quit
else
tell application "iTunes" to launch
end if

if exists process "Menuet" then
tell application "Menuet" to quit
else
tell application "Menuet" to launch
end if
end tell

This script checks whether those apps are running and launches/quits them appropriately.

#416773

Pe8er, you have any Applescript tutorials you recommend?

Thanks :),

-NC

#416781

Thx Guys works fine!

#416891

Is there something that can do this for Windows?

-Ertai

#417030

That would be DOS, I think.

#417042