• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to check applications already opened
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: Add an item to OS X's "startup items"
  • Next by Date: Re: Scope
  • Previous by thread: Re: How to check applications already opened
  • Next by thread: Re: How to check applications already opened
  • Index(es):
    • Date
    • Thread