• 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: Get current working directory
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get current working directory


  • Subject: Re: Get current working directory
  • From: "Mark J. Reed" <email@hidden>
  • Date: Sun, 2 Oct 2005 19:42:16 -0400

On 10/2/05, Gary (Lists) <email@hidden> wrote:
> "Mark J. Reed" wrote:
>
> > On 10/2/05, Gary (Lists) <email@hidden> wrote:
> >> Well, you must mean "in the shell, via AppleScript" because AS does not have
> >> "working directories".
> >
> > C'est impossible.  Every single process that ever runs in OS X has a
> > current working directory defined at all times.  AppleScript may not
> > provide any means to find out what that is for the AS interpreter
> > process, but that doesn't change the fact that it's there.
>
> Blah. Blah. Not the point. Not what I was saying. Not related to what the OP
> was asking.

I don't think that tone was called for . . .

> AppleScript has no "current working directory" concept in the language,
> other than, maybe, a similar construct in 'path to', or when passing a
> parameter to a 'choose application/file/folder' as a starting point.

"current working directory"  is an OS concept, not a programming
language concept.  I stipulated that AS may not provide a means to get
at it . . .

> The user asked how to use 'do shell script' to get the path to the working
> directory.  That implies, "in the shell", not in AppleScript.

The OP asked how to get the path to the working directory from AS, and
indicated that they had *tried* to do so by using do shell script, but
that doesn't imply that they were only interested in shellscript
solutions.

 I tried to sidestep the terminology issues and come at the question
from a pragmatic direction: do relative paths work in AS?  If so, what
are they interpreted as relative to?




--
Mark J. Reed <email@hidden>
 _______________________________________________
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

  • Follow-Ups:
    • Re: Get current working directory
      • From: "Gary (Lists)" <email@hidden>
References: 
 >Re: Get current working directory (From: "Mark J. Reed" <email@hidden>)
 >Re: Get current working directory (From: "Gary (Lists)" <email@hidden>)

  • Prev by Date: Re: scripting Apple Mail.app
  • Next by Date: Re: Simple newbie question: saving a file as type text
  • Previous by thread: Re: Get current working directory
  • Next by thread: Re: Get current working directory
  • Index(es):
    • Date
    • Thread