Re: Passing calls to an AS app via shell?
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