MACSCRPT Archives

June 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Condense Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Mime-Version:
1.0
Sender:
Macintosh Scripting Systems <[log in to unmask]>
Subject:
From:
John Delacour <[log in to unmask]>
Date:
Sat, 10 Jun 2006 08:34:36 +0100
In-Reply-To:
<p06230905c0afc4e02b02@[192.168.2.2]>
Content-Type:
text/plain; charset="us-ascii" ; format="flowed"
Reply-To:
Macintosh Scripting Systems <[log in to unmask]>
Parts/Attachments:
text/plain (17 lines)
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

ATOM RSS1 RSS2