<pre>on setFileName finderItem,newName  put "set source to" && "(" & quote & finderItem & quote && "as alias)" & return after scriptVar  put "tell application" && quote & "Finder" & quote & return after scriptVar  put "set the name of source to" && newName & return after scriptVar  put "end tell" after scriptVar  do scriptVar as appleScriptend setFileName</pre>