summaryrefslogtreecommitdiffstats
path: root/scribus/doc/en/scripter1.html
diff options
context:
space:
mode:
authorcraig <craig@11d20701-8431-0410-a711-e3c959e3b870>2012-01-01 11:40:09 +0000
committercraig <craig@11d20701-8431-0410-a711-e3c959e3b870>2012-01-01 11:40:09 +0000
commit7ed83b6c6666eb8b6b104c211ae7e52907350372 (patch)
tree4430b556abac0ad660a0aacf1887d77f85d8be02 /scribus/doc/en/scripter1.html
downloadscribus-7ed83b6c6666eb8b6b104c211ae7e52907350372.tar.gz
scribus-7ed83b6c6666eb8b6b104c211ae7e52907350372.tar.xz
scribus-7ed83b6c6666eb8b6b104c211ae7e52907350372.zip
Branch 1.3.5 tree to 1.4.x tree, goodbye 1.3.x
git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17163 11d20701-8431-0410-a711-e3c959e3b870
Diffstat (limited to 'scribus/doc/en/scripter1.html')
-rw-r--r--scribus/doc/en/scripter1.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/scribus/doc/en/scripter1.html b/scribus/doc/en/scripter1.html
new file mode 100644
index 0000000..d4a11d2
--- /dev/null
+++ b/scribus/doc/en/scripter1.html
@@ -0,0 +1,28 @@
+<html>
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <title>Scripting Scribus with Python</title>
+</head>
+<body>
+<h2>Scripting Scribus with Python</h2>
+
+<h3>Overview</h3>
+<p>This is the description how to use the scripting plug-in for Scribus. The Scripter allows you to use the powerful Python programming language as a scripting language in Scribus. This can help you to automate otherwise repetitive tasks or add new features.</p>
+
+<p>Note that additions to the Scripter are being made frequently, which means that the available documentation may be incomplete.</p>
+
+
+<h3>Using the Plug-in</h3>
+<p>Scribus is being shipped with some &ldquo;hard-wired&rdquo; scripts, which are available via <i>Scripter&nbsp;&gt; Scribus Scripts</i>:</p>
+
+<table width="100%"><tr><td align="center"><img src="images/Scripter.png" align="center" alt="Running a script" title="Running a script" /></td></tr></table>
+
+<p>There are some simple example scripts in the subdirectory &ldquo;samples.&rdquo; Its location depends on the operating system you use, e.g. <code>/usr/local/share/scribus</code> or <code>/usr/share/scribus</code> on Linux. If you have created a script which you think could be useful for others, please feel free to add it to the <a href="http://wiki.scribus.net/">Scribus Wiki</a> or paste it into an email and send it to the <a href="http://lists.scribus.info/mailman/listinfo/scribus/">Scribus mailing list</a>.</p>
+
+<p>To execute an external Python script, you have to use <i>Script&nbsp;&gt; Execute Script</i>. Scribus will open a file dialog, which allows you to select a Python script (file extension: *.py). <i>Script&nbsp;&gt; Recent Scripts</i> shows a list of recently executed scripts.</p>
+
+<p>You can use many Python modules with this plug-in, the only exception being scripts that expect parameters from the command Line. These won&rsquo;t work because the plug-in gives the Python interpreter an empty command line.</p>
+
+<p>The menu entry <i>Script&nbsp;&gt; Show Console</i> will launch an interactive Python console, where you can execute commands directly. There is no need to use &ldquo;<code>from scribus import *</code>&rdquo;, as this has already been done. You can use all the commands listed in the following pages of the Scripter API documentation directly without any prefix.</p>
+</body>
+</html>