Re: Relative path
Re: Relative path
- Subject: Re: Relative path
- From: Jon Kreisler <email@hidden>
- Date: Wed, 20 Dec 2000 15:53:45 -0500
- Web-page: http://MrMac.come.to/
How about this:
tell application "Finder"
set myPath to (path to me)
set myParent to container of (file myPath)
display dialog "I live in folder: " & myParent
end tell
On 12/20/2000, at 11:40 -0800, Matt Sainson wrote:
I'm trying to get the path to a file that is relative to the path to the
script that is running. I understand the use of "me" however, in tinkering
around, I can't seem to get the folder of "me", and subsequently the parent
folder of that folder and etc. Is this something that is managed through
string manipulation of path names of can it be done with finder commands?
Any help is appreciated. Thanks.
--
Jon Kreisler
Mac and OpenVMS specialist
<
mailto://email@hidden>