Re: [orca-list] Is it possible to get current file name?



Hi Leena.

On Tue, 2010-04-27 at 17:59 +0530, leena chourey wrote:
Hello Orca Developers,

We have a requirement to access file name of currently opened document
in openoffice/gedit. Is it possible to get file name (with path) of
currently opened file from orca script?

I don't believe that's one of the properties exposed to us via the
AT-SPI.

Any time you have such a question, your first step should be to take a
thorough look at the application via Accerciser. If you can obtain the
information you're after in Accerciser, then it could be obtained in an
Orca script.

If you cannot see what you're after in Accerciser, the next step would
be to look at the Atk documentation. [1] That's everything that we'd
expect to implemented by an accessible application and/or the toolkit
used by that application. Note that just because it's in there doesn't
mean it has actually been implemented by the application or toolkit
you're working with; merely that it should have been.

And if you don't see what you're after there, and you simply *must* have
it in order to provide much-needed access to users, the next step would
be to file a bug against the app in question (i.e. Gedit).

The step you'd take should they fail to provide it (and that's the way
to bet I'm afraid) would be to implement the interface and/or attribute
you are requesting yourself and submit it as a patch.

--joanie

[1] http://library.gnome.org/devel/atk/unstable/





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]