Skip to content

Commit 1a506e8

Browse files
committed
Typos fixed.
1. Typos fixed in Windows path examples 1. Windows Users root path updated to adhere to Windows 7/8/10/11 standards 1. Typos fixed in Scrollbar overview
1 parent 8a51d95 commit 1a506e8

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

docs/file-system-access/using-file-and-folder-objects.rst

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,7 @@ ExtendScript assigns the home directory value directly from the platform value.
9898

9999
On Windows, the ``HOME`` environment variable is optional. If it is assigned, its value must be a Windows path
100100
name or a path name referring to a remote server (such as ``\\myhost\mydir``). If the ``HOME`` environment
101-
variable is undefined, the ExtendScript default is the user's home directory, usually the ``C:\Documents and
102-
Settings\username`` folder.
101+
variable is undefined, the ExtendScript default is the user's home directory, usually the ``C:\Users\username`` folder.
103102

104103
.. note:: A script can access many of the folders that are specified with platform-specific variables through
105104
static, globally available Folder class properties; for instance, ``appData`` contains the folder that stores
@@ -156,10 +155,10 @@ These examples assume that the current drive is ``D:``
156155
================ =======================================
157156
URI path name Windows path name
158157
================ =======================================
159-
/c/dir/file c:\dir\file
160-
/remote/dir/file D:\remote\dir\file
161-
/root/dir/file D:\root\dir\file
162-
~/dir/file C:\Documents and Settings\jdoe\dir\file
158+
/c/dir/file c:\\dir\\file
159+
/remote/dir/file D:\\remote\\dir\\file
160+
/root/dir/file D:\\root\\dir\\file
161+
~/dir/file C:\\Users\\jdoe\\dir\\file
163162
================ =======================================
164163

165164
Aliases
@@ -173,7 +172,7 @@ On Windows, all file system aliases (called shortcuts) are actual files whose na
173172
``.lnk``. Never use this extension directly; the File and Folder objects work without it.
174173

175174
For example, suppose there is a shortcut to the file ``/folder1/some.txt`` in the folder ``/folder2``. The full
176-
Windows file name of the shortcut file is`` \folder2\some.txt.lnk``.
175+
Windows file name of the shortcut file is ``\folder2\some.txt.lnk``.
177176

178177
To access the shortcut from a File object, specify the path ``/folder2/some.txt``. Calling that File object's
179178
open method opens the linked file (in ``/folder1``). Calling the File object's ``rename`` method renames the

docs/user-interface-tools/types-of-controls.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,12 @@ properties.
223223
Scrollbars are often created with an associated ``EditText`` field to display the current
224224
value of the scrollbar, and to allow setting the scrollbar's position to a specific value.
225225
This example creates a scrollbar with associated ``StaticText`` and ``EditText`` elements
226-
within a panel:
226+
within a panel::
227227

228-
dlg.sizePnl = dlg.add( "panel", undefined, "Dimensions" );
229-
dlg.sizePnl.widthSt = dlg.sizePnl.add( "statictext", undefined, "Width:" );
230-
dlg.sizePnl.widthScrl = dlg.sizePnl.add( "scrollbar", undefined, 300, 300, 800 );
231-
dlg.sizePnl.widthEt = dlg.sizePnl.add( "edittext" );
228+
dlg.sizePnl = dlg.add( "panel", undefined, "Dimensions" );
229+
dlg.sizePnl.widthSt = dlg.sizePnl.add( "statictext", undefined, "Width:" );
230+
dlg.sizePnl.widthScrl = dlg.sizePnl.add( "scrollbar", undefined, 300, 300, 800 );
231+
dlg.sizePnl.widthEt = dlg.sizePnl.add( "edittext" );
232232

233233
.. _listbox-dropdownlist-treeview:
234234

0 commit comments

Comments
 (0)