| 1 | <html><head><meta name="robots" content="index,follow"><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> |
| 2 | <title>moveAndOrRenameFile</title> |
| 3 | <style> |
| 4 | td { padding-left: 5pt; padding-right: 5pt; } |
| 5 | th { padding-left: 5pt; padding-right: 5pt; } |
| 6 | code { white-space: pre-wrap; } |
| 7 | dd { white-space: pre-wrap; } |
| 8 | </style> |
| 9 | </head><body bgcolor="#FFFFFF"> |
| 10 | |
| 11 | <table border=0 cellpadding=0 cellspacing=0><tr><td bgcolor="#CCCC00"><table border=4 cellpadding=9><tr><td align=middle bgcolor="#000000"><font face="Monaco,Courier" size=6 color="#999900"><b> |
| 12 | moveAndOrRenameFile |
| 13 | </b></font></table></table> |
| 14 | <p>A function that can be used in <a href="Scripting.html">Scripting</a>.</p> |
| 15 | <h2>Syntax and semantics</h2> |
| 16 | <dl> |
| 17 | <dt><b><code><font size=+1>moveAndOrRenameFile</font></code></b> (<i><code><font size=+1>fromFilePath$</font></code></i>, <i><code><font size=+1>toFilePath$</font></code></i>) |
| 18 | <dd>move and/or rename an existing file to a new location and/or name.</dd> |
| 19 | </dl> |
| 20 | <h2>Example: rename</h2> |
| 21 | <code> <b>moveAndOrRenameFile</b> (“/Users/me/Desktop/hello.wav”,<br></code> |
| 22 | <code> ... “/Users/me/Desktop/goodbye.wav”)<br></code> |
| 23 | <h2>Example: move</h2> |
| 24 | <code> <b>moveAndOrRenameFile</b> (“/Users/me/Desktop/hello.wav”,<br></code> |
| 25 | <code> ... “/Users/me/sound files/hello.wav”)<br></code> |
| 26 | <h2>Example: move and rename</h2> |
| 27 | <code> <b>moveAndOrRenameFile</b> (“/Users/me/Desktop/hello.wav”,<br></code> |
| 28 | <code> ... “/Users/me/sound files/goodbye.wav”)<br></code> |
| 29 | <h3>Links to this page</h3> |
| 30 | <ul> |
| 31 | <li><a href="Functions.html">Functions</a> |
| 32 | <li><a href="What_s_new_.html">What's new?</a> |
| 33 | </ul> |
| 34 | <hr> |
| 35 | <address> |
| 36 | <p>© Paul Boersma 2025</p> |
| 37 | </address> |
| 38 | </body> |
| 39 | </html> |