getFileName()

16 views
Skip to first unread message

Andrew

unread,
Dec 30, 2010, 8:55:26 AM12/30/10
to scite-interest
I'm writing a lua script and I have a problem.
I'd like get the currenct file name, like this:

MyFileName = editor:getFileName()

But getFileName() function is not.

How can I get the currecnt file name in lua?

Andrew

Philippe Lhoste

unread,
Jan 1, 2011, 8:06:54 AM1/1/11
to scite-i...@googlegroups.com
On 30/12/2010 14:55, Andrew wrote:
> How can I get the currecnt file name in lua?

print(props['FileNameExt'])
(or 'FilePath', or 'FileName')

--
Philippe Lhoste
-- (near) Paris -- France
-- http://Phi.Lho.free.fr
-- -- -- -- -- -- -- -- -- -- -- -- -- --

Sallai András

unread,
Jan 2, 2011, 3:34:16 AM1/2/11
to scite-i...@googlegroups.com
2011-01-01 14:06 keltez�ssel, Philippe Lhoste �rta:

> On 30/12/2010 14:55, Andrew wrote:
>> How can I get the currecnt file name in lua?
>
> print(props['FileNameExt'])
> (or 'FilePath', or 'FileName')
>
Thank you very much!
This resolving is perfect, is working.
I did not know: props['something']

Andrew

Reply all
Reply to author
Forward
0 new messages