20
20
<name>Michael Hill</name>
21
21
<email>mdhillca@gmail.com</email>
23
<credit type="editor">
25
<email>sindhus@live.in</email>
23
27
<include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
25
29
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
43
47
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
48
<mal:name>Shushi Kurose</mal:name>
49
<mal:email>md81bird@hitaki.net</mal:email>
50
<mal:years>2012</mal:years>
53
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
44
54
<mal:name>日本GNOMEユーザー会</mal:name>
45
55
<mal:email>http://www.gnome.gr.jp/</mal:email>
46
56
<mal:years>2011, 2012</mal:years>
64
74
<section id="executable">
65
75
<title>実行可能なテキストファイル</title>
66
<p>実行可能なテキストファイルとは、実行できるプログラムを含んだファイルのことです。<link xref="nautilus-file-properties-permissions">ファイルのアクセス権</link>としてプログラムとして実行する権限が与えられている必要もあります。最もよく見られるものとしては、シェルスクリプトや、Python スクリプト、Perl スクリプトがあります。それぞれ拡張子は、.sh、.py、.pl となります。</p>
67
<p><gui>開いたら実行可能なテキストファイルを実行する</gui>、<gui>開いたら実行可能なテキストファイルの中身を表示する</gui>、あるいは<gui>毎回確認する</gui>のいずれかを選択できます。最後のオプションを有効にすれば、選択したテキストファイルを実行するか、中身を表示するかを確認するウィンドウが表示されます。</p>
76
<p>An executable text file is a file that contains a program that you can run
77
(execute). The <link xref="nautilus-file-properties-permissions">file
78
permissions</link> must also allow for the file to run as a program. The most
79
common are <sys>Shell</sys>, <sys>Python</sys> and <sys>Perl</sys> scripts.
80
These have extensions <file>.sh</file>, <file>.py</file> and <file>.pl</file>,
83
<p>When you open an executable text file, you can select from:</p>
87
<p><gui>Run executable text files when they are opened</gui></p>
90
<p><gui>View executable text files when they are opened</gui></p>
93
<p><gui>Ask each time</gui></p>
97
<p>If <gui>Ask each time</gui> is selected, a dialog will pop up asking if you
98
wish to run or view the selected text file.</p>
100
<p>Executable text files are also called scripts. All scripts in
101
<file>~/.local/share/nautilus/scripts</file> folder will appear in the context
102
menu for a file under the <gui style="menuitem">Scripts</gui> submenu. When a
103
script is executed from a local folder, all selected files will be pasted to
104
the script as parameters. To execute a script on a file:</p>
108
<p>Navigate to the desired folder.</p>
111
<p>Select the desired file.</p>
114
<p>Right click on the file to open the context menu and select the desired
115
script to execute from the <gui style="menuitem">Scripts</gui> menu.</p>
119
<note style="important">
120
<p>A script will not be passed any parameters when executed from a remote
121
folder such as a folder showing web or <sys>ftp</sys> content.</p>
71
125
<section id="trash">