• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: "path to desktop" in a tell Finder statement doesn't work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >"path to desktop" in a tell Finder statement doesn't work (From: Andrea -XFox- Govoni <email@hidden>)

  • Prev by Date: [revisited] similar strings
  • Next by Date: RE: similar strings
  • Previous by thread: "path to desktop" in a tell Finder statement doesn't work
  • Next by thread: [revisited] similar strings
  • Index(es):
    • Date
    • Thread