Handling soft link aliases with finder commands

So if I run this script I get the error “Finder got an error: Can’t make file “Macintosh HD:Users:scott:Dropbox:Downloads” into type folder.”


set theSource to POSIX file "/Users/scott/Desktop/test.m4a"
set theDestination to POSIX file "/Users/scott/Downloads"

tell application "Finder"
	duplicate theSource to theDestination
end tell

I know what the problem is its because /Users/scott/Downloads is a soft link (created from the command line with the “ln -s” command) to /Users/scott/Dropbox/Downloads.

What’s weird is the finder error message has the correct path pointed into my dropbox folder. Is there a way around this other than having to specify the path to the original item and not use the alias?

Thanks in advance, Scott

I figured it out. If I do this:

set theDestination to POSIX file “/Users/scott/Downloads” as alias

all is good.