• 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: Passing calls to an AS app via shell?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Passing calls to an AS app via shell?


  • Subject: Re: Passing calls to an AS app via shell?
  • From: Christopher Nebel <email@hidden>
  • Date: Fri, 8 Oct 2004 14:39:14 -0700

On Oct 8, 2004, at 11:02 AM, Adam K. Wuellner wrote:

When using tab completion in Terminal.app, if the path contains characters that must be quoted, the ~ gets converted to the actual path to the user's home directory. However, if the path contains no spaces, the ~ remains in the tab-completed path on the CL.* There must be a reason for this, and I would guess it's also the reason that you have to forego using the ~ in the same circumstances in AS's do shell script.

* In case the explanation is unclear, try the following:
In your home folder, create two new folders. Name the first "oneword", and the second "two words". Open Terminal, and type:
ls ~/onew
then press the tab key. If you have no other folders beginning with "onew" your command line should now have
ls ~/oneword/
Press return to run the command or control-U to clear the line. Now, type
ls ~/two
and press tab. If you have no other folders beginning with "two" your command line should now have
ls /Users/username/two\ words/


Maybe someone else can explain why this happens.

Uh, because that's how sh(1) is written? Really, I don't know -- it doesn't have to do this, but it does. csh(1) will leave the ~ alone in both cases.



--Chris Nebel AppleScript Engineering _______________________________________________ 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: 
 >Re: Passing calls to an AS app via shell? (From: Johnny AppleScript <email@hidden>)
 >Re: Passing calls to an AS app via shell? (From: "Adam K. Wuellner" <email@hidden>)

  • Prev by Date: Re: Passing calls to an AS app via shell?
  • Next by Date: Re: Passing calls to an AS app via shell?
  • Previous by thread: Re: Passing calls to an AS app via shell?
  • Next by thread: Re: Passing calls to an AS app via shell?
  • Index(es):
    • Date
    • Thread