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

Re: tilde shortcut


  • Subject: Re: tilde shortcut
  • From: "Mark J. Reed" <email@hidden>
  • Date: Mon, 4 Oct 2010 11:51:25 -0400

On Mon, Oct 4, 2010 at 11:49 AM, Mark J. Reed <email@hidden> wrote:
> Tilde is a shell thing, not an AppleScript thing. Inside a "do shell
> script" command string, unquoted "~" by itself expands to the value of
> the "HOME" environment variable, which the system initially sets to
> the user's home directory, while  ' "~"+ & username ' expands to the
> home directory of the named user according to directory services.

That is, ~username.  I started to write that, then converted to '"~" +
username', then thought I'd turn it into AS string concatenation
syntax, and did so incompletely, and got a mess.

Anyway, upshot: just use 'path to documents folder from user domain'
from AS, and forget about tildes unless you're writing shell scripts.
:)

--
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

References: 
 >tilde shortcut (From: Robert Poland <email@hidden>)
 >Re: tilde shortcut (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: tilde shortcut
  • Next by Date: Re: tilde shortcut
  • Previous by thread: Re: tilde shortcut
  • Next by thread: Re: tilde shortcut
  • Index(es):
    • Date
    • Thread