I have NSWorkspaceDidLaunchApplicationNotification question. I have this code and i don't know how to get name of launched app.
Code:
script TestingAppDelegate
property parent : class "NSObject"
property pNSWorkspace : class "NSWorkspace"
on awakeFromNib()
tell (pNSWorkspace's sharedWorkspace())'s notificationCenter()
addObserver_selector_name_object_(me, "app_launching", "NSWorkspaceDidLaunchApplicationNotification", missing value)
end tell
end awakeFromNib
on app_launching()
say "launched" --this line works
say "launched" & launched_app_name --this fails
end app_launching
end script