Radwen ANIBA wrote: > Hello every one, > > Well when playing a little bit with JCAS I was wondering how to get directly > the path to the document treated within AE without expressing it directly. > > What I want to do is to get the path and the document name eg > /here/in/this/folder/Document.txt > > Is there any extension of arg0.getDocumentText() method or something like ? > > Rad >
The CAS can only return what somebody put in it. You're the one adding the documents. So if you also add the the path to the document (as a feature value on the document annotation, for example), you can later retrieve it. If you don't add it, nobody else will do it for you. Wherever you call setDocumentText() is a good place to also set the path to the document and whatever else you later need to know about it (mime type or what have you). --Thilo