• 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: "Steven D.Majewski" <email@hidden>
  • Date: Fri, 8 Oct 2004 12:28:21 -0400


On Oct 8, 2004, at 10:53 AM, Martin Orpen wrote:

on 8/10/04 3:48 pm, Martin Orpen at email@hidden wrote:

Try adding a backslash:

    do shell script "echo hello >> ~/Temporary\ Items/filename.txt"

Escaping the space should work.

Whoops, I really meant to type:

do shell script "echo hello >> ~/Temporary\\ Items/filename.txt"


Or use  'quoted form of "Temporary Items" '



There could also be a problem with interpreting the "~"
There are differences in the environment whether running from
Script Editor or osascript ( and probably with other methods also).


I notice, from Script Editor, the first of these works for me: ( after doing a mkdir and adding a file from the shell )

		do shell script "ls  ~/" & quoted form of "Temporary Items/"

While the second version does not show the items in that dir:

		do shell script "ls  " & quoted form of "~/Temporary Items/"


The original poster may be getting an error because of the "~/" rather than a problem quoting the spaces.



-- Steve Majewski - University of Virginia Alderman Library

_______________________________________________
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


  • Follow-Ups:
    • Re: Passing calls to an AS app via shell?
      • From: Martin Orpen <email@hidden>
References: 
 >Re: Passing calls to an AS app via shell? (From: Martin Orpen <email@hidden>)

  • Prev by Date: Re: [~ot] those pesky invisible folders ...
  • Next by Date: Re: [~ot] those pesky invisible folders ...
  • 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