• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Why is the initial working directory of 'do script' root? Was: Interacting with external shell scripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is the initial working directory of 'do script' root? Was: Interacting with external shell scripts


  • Subject: Re: Why is the initial working directory of 'do script' root? Was: Interacting with external shell scripts
  • From: "Anthony Adachi" <email@hidden>
  • Date: Mon, 11 May 2009 19:52:54 -0400

On Mon, 11 May 2009 15:17:00 -0700 Philip Aker wrote:

>On 2009-05-11, at 14:45:57, Anthony Adachi wrote:
>
>> Who or what is determining the initial working directory of the 'do
>> shell script' command?
>
>See: <http://developer.apple.com/technotes/tn2002/tn2065.html> for the
>straight-goods on 'do shell script'.

Interesting. I gather the default current working directory is not
something that can be relied upon?


>BTW, a partial solution to some of your needs can be attained using
>the 'expect' command <x-man-page://expect>.
>It's not the easiest tool to get the hang of but it can for instance
>script an FTP session and echo progress (via 'osascript') to an
>AppleScript stay-open applet.

Thanks for the tip. I'll look into it.

Take care,

-Anthony




 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Why is the initial working directory of 'do script' root? Was: Interacting with external shell scripts
      • From: Christopher Nebel <email@hidden>
References: 
 >Interacting with external shell scripts (From: "Anthony Adachi" <email@hidden>)
 >Re: Interacting with external shell scripts (From: "Mark J. Reed" <email@hidden>)
 >Why is the initial working directory of 'do script' root? Was: Interacting with external shell scripts (From: "Anthony Adachi" <email@hidden>)
 >Re: Why is the initial working directory of 'do script' root? Was: Interacting with external shell scripts (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Why is the initial working directory of 'do script' root? Was: Interacting with external shell scripts
  • Next by Date: Re: Why is the initial working directory of 'do script' root? Was: Interacting with external shell scripts
  • Previous by thread: Re: Why is the initial working directory of 'do script' root? Was: Interacting with external shell scripts
  • Next by thread: Re: Why is the initial working directory of 'do script' root? Was: Interacting with external shell scripts
  • Index(es):
    • Date
    • Thread