Re: "path to desktop" in a tell Finder statement doesn't work
Re: "path to desktop" in a tell Finder statement doesn't work
- Subject: Re: "path to desktop" in a tell Finder statement doesn't work
- From: Mark Lively <email@hidden>
- Date: Mon, 9 Jan 2006 11:19:39 -0500
On 1/9/06, Andrea -XFox- Govoni <email@hidden> wrote:
> Try this script:
>
> tell application "Finder" to path to desktop
>
> It errors, but:
>
> tell application "TextEdit" to path to desktop
>
> or simply:
>
> path to desktop
>
> don't.
>
> It seems to me it's a bug.
> Who agree?
>
Call it a misfeature.
The problem is that finder overrides desktop which is defined in
Standard additions with its own desktop definition. This allows it to
understand and use desktop in different ways that the standard
additions don't use.
To got the path to the desktop in finder
tell application "Finder"
desktop as alias
end tell
This sorta goes back to whole thing which trips a lot of people up as
file and finder's file and how Finder objects while being richer and
more complex than basic types aren't compatible,
-Mark
This statement makes no sense.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden