Re: Detecting Applescript and SKYPE
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