EmEditor (text editor) Forum Index
   Questions and Answers about Macros
     I want to get the filename on "File Opened" event.
Register To Post

Threaded | Newest First Previous Topic | Next Topic | Bottom
Poster Thread
crowdy
Posted on: 2/8/2010 5:14 pm
Just popping in
Joined: 12/13/2007
From:
Posts: 5
I want to get the filename on "File Opened" event.
Hi.
I'm trying to write "File Opened" event handler.
and have found that "editor.ActiveDocument.FileName" does not return the filename to open.

alert(editor.ActiveDocument.FileName);


how can I get the filename to open?
thank you
Yutaka
Posted on: 2/8/2010 7:26 pm
Webmaster
Joined: 9/28/2006
From: Redmond
Posts: 2424
Re: I want to get the filename on "File Opened" event.
It should be

alert(editor.ActiveDocument.Name);


----------------
Yutaka Emura
Developer of EmEditor
http://www.emeditor.com/

crowdy
Posted on: 2/8/2010 7:46 pm
Just popping in
Joined: 12/13/2007
From:
Posts: 5
Re: I want to get the filename on "File Opened" event.
Ah! It works
I should have read Help carefully.

thanks.
Threaded | Newest First Previous Topic | Next Topic | Top


Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文