Re: How to check applications already opened
Re: How to check applications already opened
- Subject: Re: How to check applications already opened
- From: julifos <email@hidden>
- Date: Fri, 13 Dec 2002 09:43:28 +0000
>
Hello All,
>
>
Is there a way to check what are the opened
>
applications. Or to check if that application is
>
already open.
>
>
I'm trying to do this.
>
>
Tell application "Finder"
>
if ixests (application "QuarkXPress") then
>
more stuff...
>
else
>
display dialog "Please launch QuarkXPress before
>
running this script." buttons "Cancel" default button
>
1 with icon stop
>
end if
>
end
Many ways to check for this, but a quick one is:
tell application "Finder"
set opened_apps to creator type of processes
if "XPR3" is in contents of opened_apps then beep
end tell
JJ
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.