• 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: g3pb <email@hidden>
  • Date: Wed, 20 Dec 2000 16:47:46 -0900

-- here are a couple of different methods

set oldDelimiter to AppleScript's text item delimiters
set AppleScript's text item delimiters to ":"
set SettingsPath to every text item of ((path to me) as string)
set AppleScript's text item delimiters to oldDelimiter

tell application "Finder" to set myFolder to container of (path to me)

-- hcir
mailto:email@hidden


> 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?


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

  • Prev by Date: Re: Simple 'screensaver' launcher
  • Next by Date: Re: "11/31/99" to date
  • Previous by thread: Re: Relative path
  • Next by thread: Re: Relative path
  • Index(es):
    • Date
    • Thread