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: Martin Orpen <email@hidden>
- Date: Fri, 08 Oct 2004 17:52:27 +0100
on 8/10/04 5:28 pm, Steven D.Majewski at email@hidden wrote:
>
> 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" '
I didn't mention that because Johnny A. said that he'd also been unable to
get the script to work with "quoted forms" of the path.
> 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 don't think it's an environment problem.
The ~ is rendered meaningless if it's quoted or escaped whether you're using
bash, tcsh or whatever shell.
You can do:
$ cd "/"
But, as you noted in your script, you can't do:
$ cd "~"
--
Martin Orpen
Idea Digital Imaging Ltd -- The Image Specialists
http://www.idea-digital.com
_______________________________________________
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