> On Oct 22, 2007, at 18:22, Levon Spradlin wrote:
>
>> Am I doing something wrong?
>>
>> tell application "Finder"
>> set theDesktop to path to desktop as Unicode text
>> end tell
>>
>> Finder got an error: Can't make desktop into type constant.
>>
Try this:
tell application "Finder"
set myDesktop to desktop as Unicode text
end tell
Or, outside a "Finder" tell, try this:
set theDesktop to path to desktop as Unicode text
Or this
set theDesktop to path to "desk" as Unicode text
I'm not sure why
Path to "Desk" as unicode text
works, but it seems to. I wouldn't recommend "path to" inside a Finder tell,
especially when it's not needed.
HTH,
ES