• 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
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Path to DeskTop


  • Subject: Re: Path to DeskTop
  • From: "Mark J. Reed" <email@hidden>
  • Date: Thu, 19 Apr 2007 12:54:46 -0400

On 4/19/07, Wayne Melrose <email@hidden> wrote:
or "~/Desktop/" .... if you want the unix path

"~/Desktop" doesn't work outside of a few special circumstances where tilde expansion is performed, such as in an unquoted argument on a shell command line. Otherwise it refers to a subfolder of the current folder named "~", which is probably not what you want.

Also, you can change where the Desktop folder is located, so it's not
necessarily ~/Desktop.

And you can run scripts as a user other than the one currently logged
in, so ~/Desktop might not be the Desktop that matters at the moment.

So don't assume anything about where the Desktop is.  Ask the system
to tell you.

--
Mark J. Reed <email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: Path to DeskTop
      • From: Wayne Melrose <email@hidden>
References: 
 >Path to DeskTop (From: Oakley Masten <email@hidden>)
 >Re: Path to DeskTop (From: "Mark J. Reed" <email@hidden>)
 >Re: Path to DeskTop (From: Wayne Melrose <email@hidden>)

  • Prev by Date: Re: Path to DeskTop
  • Next by Date: Re: Path to DeskTop
  • Previous by thread: Re: Path to DeskTop
  • Next by thread: Re: Path to DeskTop
  • Index(es):
    • Date
    • Thread