Skip to content

Commit

Permalink
Merge pull request #8 from SetTrend/windows_paths
Browse files Browse the repository at this point in the history
Various typos fixed
  • Loading branch information
zlovatt committed Apr 25, 2023
2 parents 8a51d95 + 1a506e8 commit b0f8ce0
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
13 changes: 6 additions & 7 deletions docs/file-system-access/using-file-and-folder-objects.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,7 @@ ExtendScript assigns the home directory value directly from the platform value.

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

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

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

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

To access the shortcut from a File object, specify the path ``/folder2/some.txt``. Calling that File object's
open method opens the linked file (in ``/folder1``). Calling the File object's ``rename`` method renames the
Expand Down
10 changes: 5 additions & 5 deletions docs/user-interface-tools/types-of-controls.rst
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ properties.
Scrollbars are often created with an associated ``EditText`` field to display the current
value of the scrollbar, and to allow setting the scrollbar's position to a specific value.
This example creates a scrollbar with associated ``StaticText`` and ``EditText`` elements
within a panel:
within a panel::

dlg.sizePnl = dlg.add( "panel", undefined, "Dimensions" );
dlg.sizePnl.widthSt = dlg.sizePnl.add( "statictext", undefined, "Width:" );
dlg.sizePnl.widthScrl = dlg.sizePnl.add( "scrollbar", undefined, 300, 300, 800 );
dlg.sizePnl.widthEt = dlg.sizePnl.add( "edittext" );
dlg.sizePnl = dlg.add( "panel", undefined, "Dimensions" );
dlg.sizePnl.widthSt = dlg.sizePnl.add( "statictext", undefined, "Width:" );
dlg.sizePnl.widthScrl = dlg.sizePnl.add( "scrollbar", undefined, 300, 300, 800 );
dlg.sizePnl.widthEt = dlg.sizePnl.add( "edittext" );

.. _listbox-dropdownlist-treeview:

Expand Down

0 comments on commit b0f8ce0

Please sign in to comment.