My app doesn’t make use of an actual “document” window, but it does use the Document.nib to enable the read from file function, since as far as I can tell that’s the only way to do it. There’s no windows in Document.nib, so nothing really happens when a document is opened except for it runs my script. (it doesnt use any of the normal document shenanigans). Everything is working beautifully, except if you try to open a document more than once, nothing happens. I think this is because the document is still “open” (or unreleased) or something according to the application. So how would I close the document as soon as it opens (all i need is the file path) Any help would be wonderful. Here’s the code I have:
on read from file theObject path name pathName of type ofType
if ofType contains "Emblem Design" then
my Open_Emblem_Document_Handler(pathName)
return true
end if
end read from file