On 10/6/06 08:34, "John Delacour" <[log in to unmask]> wrote:
> At 2:44 am +0200 10/6/06, Emmanuel wrote:
>
>> ...in do shell script is the root level of the startup disk, while
>> in Terminal it's your Home folder.
>>
>> In other words, for do shell script "myFile" is "Macintosh
>> HD:myFile" while in Terminal "myFile" is "Macintosh
>> HD:Users:[you]:myFile".
>>
>> So, scripts for one and for the other have to be different.
>
> ...unless one makes a habit of starting with "cd $HOME;"
>
> do shell script "echo $PWD;cd $HOME;echo $PWD;"
>
> JD
You don't need to say cd $HOME - just a plain 'cd' will do the same thing.
--
Barry