Your code doesn’t make sense to me. What are you trying to accomplish with 'as s"? On another note, you can eliminate the ‘path to folder’ since it IS a path to the folder.
tell application "Finder"
set baseurl to "Macintosh HD:OSX Web Downloads:"
end tell
In addition to Rob’s comments, ‘path to’ returns the path to certain system-related directories (such as home directories, temporary items, etc.). It can’t be used (and doesn’t need to be used) for arbitrary folders.
I’m guessing that you’re trying to get this path as a string, in which case you can just:
set baseurl to folder “Macintosh HD:OSX Web Downloads” as string
or since you’re already specifying a string in the script, just: