• 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: Relative path
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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>


References: 
 >Relative path (From: Matt Sainson <email@hidden>)

  • Prev by Date: Re: 11/31/99 as date
  • Next by Date: Re: easy way to check if item is file or folder
  • Previous by thread: Re: Relative path
  • Next by thread: Re: Relative path
  • Index(es):
    • Date
    • Thread