• 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 16:49:42 -0400

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.

If you coerce a relative path to an alias in AS, what does it use as
the containing folder?  Is it always the root of the hard disk?  Or
the folder containing the script?  Or does it depend on the
interpreter (osascript vs Script Editor vs Smile vs Folder Actions . .
.).  I'd guess the latter, and I further assume that folder actions
run with the cwd set to the folder to which the actions are attached .
. .

--
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>
    • Re: Get current working directory
      • From: Shane Stanley <email@hidden>
References: 
 >Get current working directory (From: Thomas Vatter <email@hidden>)
 >Re: Get current working directory (From: "Gary (Lists)" <email@hidden>)

  • Prev by Date: Re: TIDs, speed, (Unicode) text
  • Next by Date: Re: Can't get name of Window 1 in Excel - answer
  • Previous by thread: Re: Get current working directory
  • Next by thread: Re: Get current working directory
  • Index(es):
    • Date
    • Thread