On 10/22/07, Levon Spradlin <[log in to unmask]> wrote:
> I get an AppleScript Runtime Error when trying this simple code. I am
> copying it from known working tutorial scripts, thinking that my syntax was
> off in my project. It makes my head hurt when simple does not work. AmI
> 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.
Wrong app. Try:
tell application "System Events"
set x to path to desktop as Unicode text
end tell