Ok each line I write gives up another error

Why do I get this error:

Can’t make folder “Macintosh HD:OSX Web Downloads:” into a item

when runnig the script:

tell application “Finder”
set baseurl to (path to folder “Macintosh HD:OSX Web Downloads:”) as s end tell

Applescript is so frustrating. It seems like there are no rules! Each application behaves diffrent. Uhg!

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

– Rob

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:

set baseurl to “Macintosh HD:OSX Web Downloads”