• 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: Wayne Melrose <email@hidden>
  • Date: Thu, 19 Apr 2007 19:02:28 +0200


On 19/04/2007, at 6:54 PM, Mark J. Reed wrote:

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.


Good point.

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

I didnt know that..? how do you do that?


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.

Good point.


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


Cheers..

--
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: "Mark J. Reed" <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>)
 >Re: Path to DeskTop (From: "Mark J. Reed" <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