|
From: Marc D. <mar...@gm...> - 2015-11-07 19:04:17
|
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi,<br>
<br>
<br>
I'm using the templates plugin and have created a number of
templates.<br>
Some templates write, after the necessary stuff is entered, the file
immediately to disk.<br>
<br>
To write the file to disk I use the beanshell directive, like this:<br>
#beanshell (false)<br>
buffer.save(view, buffer.getDirectory() +
context.get("Filename"));<br>
#end<br>
<br>
the buffer.getDirectory() returns the path of the current buffer and
thus writes the file in that directory.<br>
When picking a template, the buffer is opened in the folder
where the templates are stored and the file is thus written there.<br>
I want to write the file to the path displayed in the FSB (File
System Browser) path text field.<br>
<br>
Can somebody tell me how to get this path in beanshell?<br>
<br>
<br>
Many thanks in advance,<br>
<br>
Marc
<div class="moz-signature">
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
<title></title>
<meta name="GENERATOR" content="LibreOffice 3.5 (Linux)">
<meta name="AUTHOR" content="Famlie Defossez">
<meta name="CREATED" content="20120716;9200900">
<meta name="CHANGEDBY" content="Marc Defossez">
<meta name="CHANGED" content="20120716;20111900">
<meta name="CHANGEDBY" content="Marc Defossez">
<p style="margin-bottom: 0mm; border-top: none; border-bottom: 1px
solid #000000; border-left: none; border-right: none;
padding-top: 0mm; padding-bottom: 0.74mm; padding-left: 0mm;
padding-right: 0mm">
<br>
</p>
<p style="margin-bottom: 0mm">
<meta name="CHANGEDBY" content="Marc Defossez">
<meta http-equiv="Context-Type" content="text/html;
charset=UTF-8">
<meta name="CHANGEDBY" content="Famlie Defossez">
<font size="3">Marc
Defossez</font><font size="4"><br>
</font><font size="3">Volmolenheide
38<br>
2400 Mol – Antwerpen Tel: +32 14 319
632<br>
Belgium
Eml: <a href="mailto:mar...@gm...">mar...@gm...</a></font></p>
<p style="margin-bottom: 0mm; border-top: none; border-bottom: 1px
solid #000000; border-left: none; border-right: none;
padding-top: 0mm; padding-bottom: 0.76mm; padding-left: 0mm;
padding-right: 0mm">
<font color="#00b050"><font face="Webdings"><font
style="font-size: 16pt" size="4"><b>P</b></font></font></font><font
color="#00b050">
</font><font color="#ff0000"><font size="2"><b>Please do not
print this
e-mail unless you really need to.</b></font></font></p>
<p><font face="Arial, sans-serif"><font size="2">This email and
any
attachments are intended for the sole use of the named
recipient(s)
and contain(s) confidential information that may be
proprietary,
privileged or copyrighted under applicable law. If you are
not the
intended recipient, do not read, copy, or forward this email
message
or any attachments. Delete this email message and any
attachments
immediately. </font></font>
</p>
</div>
</body>
</html>
|