• 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: Getting the path to root
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the path to root


  • Subject: Re: Getting the path to root
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 2 Jun 2006 10:49:59 -0700


On Jun 2, 2006, at 10:04 AM, Doug McNutt wrote:

i was wonthering how to get the path to root

I can get the path to desktop the following way:
set mypath to path to desktop

In UNIX it would be set mypath to "/"

But I assume you tried that. The root is also the highest level directory on the startup disk.

set foo to "/" POSIX file foo --> file "Dora"

path to startup disk
--> alias "Dora:"

POSIX path of "Dora"
--> "/"

---
Do not go out and kill Klansmen, no matter how much they deserve it. It would be funny as hell to see on the evening news how a bunch of guys wearing bright pink robes and hoods started burning triangles in their yards for a change.



_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Getting the path to root (From: "Federico Tessmann" <email@hidden>)
 >Re: Getting the path to root (From: Doug McNutt <email@hidden>)

  • Prev by Date: Re: Getting the path to root
  • Next by Date: Re: Getting the path to root
  • Previous by thread: Re: Getting the path to root
  • Next by thread: Re: Getting the path to root
  • Index(es):
    • Date
    • Thread