Simple newbie question
Simple newbie question
- Subject: Simple newbie question
- From: ba95 <email@hidden>
- Date: Mon, 12 May 2008 19:50:13 +0200
Here comes a script
It launches 2 linked applications if they are not opened, and quits
them if they are (toggle).
===
tell application "Finder"
try
get exists process "App1"
if the result is false then open application "App1"
open application "App2"
end try
try
get exists process "App1"
if the result is true then quit application "App1"
quit application "App2"
end try
end tell
===
This script works well, but it looks quite awkward to me. I would
like to improve it.
I have tried other solutions unsuccefully...
Thx to help me.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden