• 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
unix style paths
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

unix style paths


  • Subject: unix style paths
  • From: Kris Steinhoff <email@hidden>
  • Date: Mon, 15 Jul 2002 11:52:09 -0500

Hi,

Does anyone know how to make references to files with their unix style path. such as "/Users/Shared/whatever"

I am trying to copy some preference files to a users ~/Library/Preferences folder and I want it to work for any user that logs in. To do that I'll use 'system attribute "home"' and then concatenate "/Library/Preferences" to the result. The reason I am not using a shell script it that the preference files I am trying to copy seem to be dual-fork (does that even make sense?) and using cp or even ditto breaks the file.

here's what I need to do (this is just pseudo code, the syntax is probably wrong):

set dest to (system attribute "HOME") & "/Library/Preferences"
copy [or move] "/private/Prefs" to dest

and applescript doesn't seem to know what to do with the unix style path reference, so does anyone know how to use a unix style path in Applescript?

thanks
-kris
_______________________________________________
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: unix style paths
      • From: Roger_Jolly <email@hidden>
  • Prev by Date: Re: Timers in AppleScript?
  • Next by Date: Re: Timers in AppleScript?
  • Previous by thread: Re: Timers in AppleScript?
  • Next by thread: Re: unix style paths
  • Index(es):
    • Date
    • Thread