• 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: displayed name of a process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: displayed name of a process


  • Subject: Re: displayed name of a process
  • From: KOENIG Yvan <email@hidden>
  • Date: Mon, 24 Mar 2008 17:11:21 +0100


Le 24 mars 2008 à 16:55, Michelle Steiner a écrit :
On Mar 24, 2008, at 8:41 AM, Michelle Steiner wrote:

I'm running 10.5.2 and can't duplicate your problem. It works the same for me as in 10.4.


Whoops. I missed the part about Application in Yvan's original message. Yes, I can duplicate his results with an application's icon.

However, in the Finder's Get Info window for an application, "Hide extension" is checked and inactive so it can't be unchecked. I think the bug in Applescript is that "set extension hidden to false" should return an error instead of failing silently when applied to an application.



It seems that I was not clear enough.

I was asking about the property displayed name of an application Process.

tell application "System Events" to get displayed name of application processes.

Under 10.4, if the Finder is set to displa the name extension the result is:

tell application "System Events"
get displayed name of every application process
{"loginwindow.app", "WacomTabletDriver.app", "Dock.app", "TabletDriver.app", "SystemUIServer.app", "Finder.app", "Sidekick.app", "StuffItAVRDaemon.app", "UniversalAccess.app", "SMARTReporter.app", "MenuShade.app", "iStat menus Helper.app", "System Events.app", "Shades.app", "alertEbay.app", "Mail.app", "Safari.app", "Aperçu.app", "TextEdit.app", "Pages.app", "Éditeur de scripts.app", "Numbers.app", "Address Book.app", "PagesAnglais.app", "ImageWell.app"}
end tell



If the Finder is set to "don't display" the name extension, the result is:


tell application "System Events"
get displayed name of every application process
{"loginwindow", "WacomTabletDriver", "Dock", "TabletDriver", "SystemUIServer", "Finder", "Sidekick", "StuffItAVRDaemon", "UniversalAccess", "SMARTReporter", "MenuShade", "iStat menus Helper", "System Events", "Shades", "alertEbay", "Mail", "Safari", "Aperçu", "TextEdit", "Pages", "Éditeur de scripts", "Numbers", "Address Book", "PagesAnglais", "ImageWell"}
end tell



And under 10.5 I always get the names without the extension.

Yvan KOENIG

_______________________________________________
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: displayed name of a process
      • From: CYB <email@hidden>
References: 
 >displayed name of a process (From: KOENIG Yvan <email@hidden>)
 >Re: displayed name of a process (From: Michelle Steiner <email@hidden>)
 >Re: displayed name of a process (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: displayed name of a process
  • Next by Date: Re: Open for access with write permission
  • Previous by thread: Re: displayed name of a process
  • Next by thread: Re: displayed name of a process
  • Index(es):
    • Date
    • Thread