• 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
"path to me" vs ":"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"path to me" vs ":"


  • Subject: "path to me" vs ":"
  • From: Kirk Kerekes <email@hidden>
  • Date: Sat, 08 Dec 2001 11:07:36 -0600

A simple means of replacing the ":" trick with "path to me" when you want
the path to the enclosing folder is:

set myalias to (path to me)
tell application "Finder"
set mypath to folder of myalias
end tell
set mypath to mypath as string

This is shorter than using Text Item Delimiters to lop off the end of the
path, and has the advantage of not assuming the path delimiter.


  • Follow-Ups:
    • Applescript or bust ... ?
      • From: Eric Schult <email@hidden>
  • Prev by Date: Re: Open a Text File of Folders/Files?
  • Next by Date: Help needed - auto email
  • Previous by thread: Re: Open a Text File of Folders/Files?
  • Next by thread: Applescript or bust ... ?
  • Index(es):
    • Date
    • Thread