• 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: Missing value
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Missing value


  • Subject: Re: Missing value
  • From: Ron Hunsinger <email@hidden>
  • Date: Sun, 28 Aug 2011 16:07:35 -0700

Have you tried:

name of application id "com.skype.skype"

But I gather it's not Skype in particular you want the name of, but rather the short name of the frontmost application, in which case:

tell application "System Events"
set itspath to (path to frontmost application as text)
end tell
name of application itspath

or more generally:

tell application "System Events"
name of every process whose visible is true
end tell

I don't have Skype installed, but all of those work for other applications that have missing short names. (Well, the first one requires the app to have a defined bundle id, but the others work even for applications that don't.) The last line of the second method illustrates that you can get the name of any application just knowing its path, without needing to launch it and without needing info for.

-Ron Hunsinger

 _______________________________________________
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: Missing value
      • From: Robert Poland <email@hidden>
References: 
 >Missing value (From: Robert Poland <email@hidden>)
 >Re: Missing value (From: Christopher Stone <email@hidden>)
 >Re: Missing value (From: Robert Poland <email@hidden>)
 >Re: Missing value (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: Re: Missing value
  • Next by Date: Re: Missing value
  • Previous by thread: Re: Missing value
  • Next by thread: Re: Missing value
  • Index(es):
    • Date
    • Thread