Getting the Postscript name of a Font in Quark

APOLOGIES.
I should have posted this on the OS X forum not this. I’m sorry about this.

Hello,
I need a way to find the Postscript name of fonts. In Quark the font name provided isn’t the postscript name. I’ve currently got a function that does simple hardcoding. See below. In this example when I use Applescript to interrogate Quark it will tell me that the font in a text box is HelveticaNeue MediumCond, but this isn’t its postscript name


	if newText is equal to "HelveticaNeue MediumCond" then
		set newText to "HelveticaNeue-MediumCond"
	end if

I’ve started to have a look at working with the application Font Book but to be blunt I’ve no idea how I can find the information I want. Any ideas or pointers in the right direction will be much appreciated.

Thanks in advance.

The answer is rather embarrassingly simple.


tell application "Font Book"
	set myFont to "HelveticaNeueLt Std Med Cn"
	get properties of typeface myFont
	get PostScript name of typeface myFont
end tell

PLEASE NOTE I wrote this on OS X I’m merely posting it here so as one day someone searching for the answer finds it.