• 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: Carl Albrecht-Buehler <email@hidden>
  • Date: Fri, 02 May 2003 10:00:00 -0500

on 05/02/2003 9:29 AM, Paul Berkowitz wrote:

> Use the name of your actual hard disk, not "Macintosh HD". Or use (path to
> startup disk as Unicode text) to work anywhere.
>
> set theMacOSPath to ((path to startup disk as Unicode text) &
> "Users:Shared:")
> set theUnixPath to POSIX path of theMacOSPath
> --> "/Users/Shared/"

That's the ticket! Thanks a lot, Paul!

And thanks to Ben, Michelle, and Emmanuel - This is an incredibly responsive
and helpful group!

One last question - if I am reading out a path name from a text file, once I
have the path name, how can I set that string to be a path so that I can
POSIX it? For example:
On my Desktop there is a file called "Text.txt"
I read out the contents, which consists merely of a path name like
"startup disk:users:shared:"
How can I get AppleScript to treat the variable that I read out of the file
as a path?

Thanks again so much for all this help!

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.

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

  • Prev by Date: Re: mac to unix path names
  • Next by Date: Re: Scripting an AppleWorks database
  • Previous by thread: Re: mac to unix path names
  • Next by thread: Re: mac to unix path names
  • Index(es):
    • Date
    • Thread