getting strange error message

Here is a simple script I am writing to create and name a new folder;

tell application “Finder”

set fname to "latest"
set p to (path to "HI New iMac Drive:Users:HI:Desktop:**Evidence Center Company:*Billing:LBBS')
make new folder at p with properties  {name:fname}

end tell
When I try to run I get this error at the beginning of the end tell line:

Expected “”" but found end of script

Can anyone see what is wrong with my script???

Thanks

Herb

Hi Herb.

The message means the compiler’s been unable to match all the quotes in the script code and thought it was still compiling a string when it suddenly ran out of code. In this case, it’s because you’ve put a single quote instead of a double after “LBBS”.

‘path to’ is a StandardAdditions command which returns aliases or paths to certain items. You can’t use your own path with it. Use ‘file’ to get a Finder reference (in the FInder context) or ‘alias’:

tell application "Finder"
	
	set fname to "latest"
	set p to (alias "HI New iMac Drive:Users:HI:Desktop:**Evidence Center Company:*Billing:LBBS")
	make new folder at p with properties {name:fname}
	
end tell