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

mac to unix path names


  • Subject: mac to unix path names
  • From: Carl Albrecht-Buehler <email@hidden>
  • Date: Fri, 02 May 2003 08:03:26 -0500

Hi Everyone,

I'm a total newbie to AppleScript, and I'm pretty stumped. I'm trying to
take a typical MacOS path name (like "startup disk:users:shared:text.txt")
and convert it to the Unix equivalent (/users/shared/text.txt) so that I can
process commands to folders through the shell. In the O'Reilly book,
"AppleScript in a Nutshell", it claims that one can get the path to a file
or folder by using the target property, but this has not worked for me. If
I use it in a script, I get "... of folder..." returns and if I try to force
its use, as in 'set the target of Finder window 1 to "/users/shared/"', it
returns an error telling me that Finder can not understand the command.

So the long and the short of the question is, how can I change an MacOS file
path name with colons to a Unix path name? My current strategy has been to
deal with it just through string manipulation, but I'm hoping there is a
more direct way since this has limitations and is rather convuluted. I'm
using OS 10.2.4 with AppleScript 1.9 on an 800MHz iBook

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.

  • Follow-Ups:
    • Re: mac to unix path names
      • From: Emmanuel <email@hidden>
    • Re: mac to unix path names
      • From: Ben Waldie <email@hidden>
  • Prev by Date: Re: Script in Script Editor MUCH faster than compiled app -- why?
  • Next by Date: Re: Scientific notation
  • Previous by thread: Re: Script in Script Editor MUCH faster than compiled app -- why?
  • Next by thread: Re: mac to unix path names
  • Index(es):
    • Date
    • Thread