Re: Current working directory...
- Subject: Re: Current working directory...
- From: Luther Fuller <email@hidden>
- Date: Fri, 2 Jun 2006 17:28:05 -0500
- Delivered-to: email@hidden
- Delivered-to: email@hidden
On Jun 2, 2006, at 5:08 PM, Charles E. Heizer wrote:
Hello,
How can I get the directory of the script I'm running? I tried "do
shell script pwd" but it returns "/".
Start with this ...
tell application "Finder" to set selfRef to (path to me) as alias
To get the directory, use ...
tell application "Finder" to set myLoc to (container of selfRef) as
alias
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.