• 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: "Gary (Lists)" <email@hidden>
  • Date: Sun, 02 Oct 2005 14:54:59 -0400

"Thomas Vatter" wrote:

> How do I get the name of the current working directory in Applescript? I have
> tried cd `dirname $0` without success.

Well, you must mean "in the shell, via AppleScript" because AS does not have
"working directories".

And...

'cd' is 'change directory'

You want 'pwd' which is 'path to working directory'.

That's the path to the "working" directory, not just its name.

--
Gary

 _______________________________________________
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: "Mark J. Reed" <email@hidden>
References: 
 >Get current working directory (From: Thomas Vatter <email@hidden>)

  • Prev by Date: Get current working directory
  • Next by Date: Re: Get current working directory
  • Previous by thread: Get current working directory
  • Next by thread: Re: Get current working directory
  • Index(es):
    • Date
    • Thread