• 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: mac to unix path names
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mac to unix path names


  • Subject: Re: mac to unix path names
  • From: Rob Morton <email@hidden>
  • Date: Fri, 02 May 2003 12:49:33 -0400

Change your file a bit.
set theMacOSPath to ":Users:Shared:"
set theUnixPath to POSIX path of theMacOSPath


By making theMacOSPath start with a : it doesn't matter what you call your
startup disk.

Rob Morton

on 5/2/03 9:57 AM, Carl Albrecht-Buehler at email@hidden wrote:

> on 05/02/2003 8:17 AM, Ben Waldie wrote:
>
>> Give this a try...
>>
>> set theMacOSPath to "Macintosh HD:Users:Shared:"
>> set theUnixPath to POSIX path of theMacOSPath
>
> Thanks a whole lot, Ben; that's just about the trick I was looking for! I
> have one concern though: This example yields the result of "/Macintosh
> HD/Users/Shared/". Is this path correct? Is the Users folder not actually
> simply a directory underneath "/"? I tried checking this by opening a
> terminal and typing in this path, and get "No such file or directory". This
> would make sense because there is no directory by the name of any disk under
> "/"
>
> For other disks, this might work; that is to say, in a partitioned hard
> drive the path to a folder is not "/VolumeName/Folder/" but rather,
> "/Volumes/VolumeName/Folder/" and that's easy enough to concatenate.
> However, the startup disk is not a volume that gets stored in "/Volumes/" so
> I can't concatenate quite so easily.
>
> Is the correct course of action then to do the POSIX conversion, then check
> to see what names the disks have against this result - if the name of the
> startup disk is present, then to drop it and if not, to prefix "/Volumes"?
>
> Thanks.
>
> Carl
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: mac to unix path names
      • From: Christopher Nebel <email@hidden>
References: 
 >Re: mac to unix path names (From: Carl Albrecht-Buehler <email@hidden>)

  • Prev by Date: RE: Setting Page Setup in Quark
  • Next by Date: Re: Scientific notation
  • Previous by thread: Re: mac to unix path names
  • Next by thread: Re: mac to unix path names
  • Index(es):
    • Date
    • Thread