You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<parametername="full expansion"code="ExpR"type="boolean"optional="yes"description="if true, relative paths will also be expanded to absolute paths within the current folder (default: false)"/>
61
59
<resulttype="text"/>
62
60
@@ -70,21 +68,21 @@ convert path theFile to file URL format <i>-- (a ‘from’ parameter isn't need
70
68
normalize path "Music/iTunes" with full expansion
71
69
→ "/Users/jsmith/Music/iTunes"</code></pre>
72
70
73
-
<p>A new path is made by performing the following operations:</p>
71
+
<p>This command normalizes a path by performing the following clean-up tasks as needed:</p>
74
72
75
73
<ul>
76
-
<li>Expanding an initial tilde expression.</li>
74
+
<li>expanding the initial tilde expression</li>
77
75
78
-
<li>Removing an initial component of “/private/var/automount”, “/var/automount”, or “/private” from the path, if the result still indicates an existing file or folder (checked by consulting the file system).</li>
76
+
<li>removing the initial component of “/private/var/automount”, “/var/automount”, or “/private” from the path, if the result still indicates an existing file or folder (checked by consulting the file system)</li>
79
77
80
-
<li>Reducing empty components and references to the current folder (that is, the sequences “//” and “/./”) to single path separators.</li>
78
+
<li>reducing empty components and references to the current folder (that is, the sequences “//” and “/./”) to single path separators</li>
81
79
82
-
<li>Removing a trailing slash from the last component.</li>
83
-
84
-
<li>For absolute paths only, resolving references to the parent folder (that is, the component “..”) to the real parent folder if possible. For relative paths, references to the parent folder are left in place.</li>
80
+
<li>removing the trailing slash from the last component.</li>
85
81
</ul>
86
82
87
-
<p>Throws error number -1728 if the current working folder is unknown.</p>
83
+
<p>For absolute paths, it also resolves references to the parent folder (that is, the component “..”) to the real parent folder if possible. For relative paths, references to the parent folder are left in place.</p>
84
+
85
+
<p>Note: this command will raise error number -1728 if a relative path is given and the current working directory is unknown.</p>
0 commit comments