Get process name from application name and vice versa, using Applescript
问题 On 27 February 2003, Apple employee Christopher Nebel said he'd like to straighten out this problem as reported by Bill Cheeseman: Because of the different naming for applications and application processes in some circumstances, we end up having to write slightly confusing scripts like this (if we've renamed Adobe Photoshop 7.0 to "Photoshop" in the Finder): tell application "Photoshop" to activate tell application "System Events" tell application process "Adobe Photoshop 7.0" Suffice it to