Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Current working directory...



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
References: 
 >Current working directory... (From: "Charles E. Heizer" <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.