MACSCRPT Archives

June 2006

MACSCRPT@LISTSERV.DARTMOUTH.EDU

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

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

Print Reply
Subject:
From:
John Delacour <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Sat, 10 Jun 2006 08:34:36 +0100
Content-Type:
text/plain
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