• 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: Detecting Applescript and SKYPE
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Detecting Applescript and SKYPE


  • Subject: Re: Detecting Applescript and SKYPE
  • From: Sander Tekelenburg <email@hidden>
  • Date: Sat, 11 Oct 2008 03:04:14 +0200

At 16:37 -0500 UTC, on 2008-10-10, Luther Fuller wrote:

[...]

> on isRunning(applIdent)
> 	tell application "Finder"
> 		try
> 			set AppName to name of (application file id applIdent)
> 		on error
> 			return false
> 		end try
> 		if AppName ends with ".app" then
> 			set AppName to text 1 thru -5 of AppName

You can get the displayed name directly:

on isRunning(applIdent)
	tell application "Finder"
		try
			set AppName to displayed name of (application file id applIdent)
		on error
			return false
		end try
		return exists application process AppName
	end tell
end isRunning


--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>
 _______________________________________________
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

  • Follow-Ups:
    • Re: Detecting Applescript and SKYPE
      • From: Luther Fuller <email@hidden>
References: 
 >Re: Detecting Applescript and SKYPE - MORE (From: Don Wieland <email@hidden>)
 >Re: Detecting Applescript and SKYPE - MORE (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: Detecting Applescript and SKYPE
  • Next by Date: Re: Detecting Applescript and SKYPE (a bug)
  • Previous by thread: Re: Detecting Applescript and SKYPE - MORE
  • Next by thread: Re: Detecting Applescript and SKYPE
  • Index(es):
    • Date
    • Thread