May you open a word document and post what is returned by this short script ?
tell application id "com.microsoft.Word"
activate
full name of document 1
end tell
I get:
"JaundicedOutlook:Documents:TestDocs:Word-Test2.docx"
If its a Saved document or “Document1” if it’s a new document.
I can tell the difference because I test to see if there is a “:” or “/“ in the ID.
Basically I just want a Unique ID for the Document so I can refer to it from my Objective-C Application. I used a POSIX path because it provides a Unique ID *and* allows me to get at the raw file if I need to. I could pass back the Mac Alias path and then convert it to POSIX in Objective-C, expect the as luck would have it, I can’t use a “:” as part of the identifier in this case, because it is used for something else, so I’d have to convert the “:” to something else before passing it back to the Objective-C App, so instead of doing that, I thought that using the POSIX equivalent would be better all round.
The “full posix name” property seems to work ok, so I think its better to use this and avoid converting.
Thanks for the information below though, it will be handy for other applications,
All the Best
Dave