• 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: Help -- going posix space crazy
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help -- going posix space crazy


  • Subject: Re: Help -- going posix space crazy
  • From: Christopher Nebel <email@hidden>
  • Date: Sun, 23 Feb 2003 11:45:36 -0800

On Saturday, February 22, 2003, at 11:36 PM, Marc S.A. Glasgow wrote:

I am having real difficulties building a path to a file that doesn't exist yet ... every variation I have tried of this (or on the result of this concatenation) has resulting in either:
(A) colons being retained, or
(B) spaces not being \ delimited, or
(C) all \ being \ delimited themselves (where space becomes \\[space])
(D) an error in casting the path to a posix file/posix path (because the file doesn't exist),
(E) keeping it in retained quoted form.

Probably there's some sort of inconsistency in when and how you convert and quote your path strings. It's best to avoid "quoted form" until you're ready to pass the string to "do shell script". You may find the new "do shell script" technote <http://developer.apple.com/technotes/tn2002/tn2065.html> helpful.

What happens if I send a file with a resource fork to mv filepathA filepathB? Not why I should or
shouldn't, but what actually happens (just loss of the resource fork, or also corruption of the filing system?)?

Worst case, the resource fork and all Mac-specific metadata (type, creator, and most of the Finder bits) will be lost. However, that only happens if you mv something between volumes; if it stays on the same volume, everything is preserved. MvMac and ditto -rsrcFork don't have any such problem.

On Sunday, February 23, 2003, at 06:34 AM, julifos wrote:

Is "ditto" included in a standard OS X installation, or it does require jaguar or dev. tools or anything special?

"ditto" has always been part of Mac OS X, and is part of the base install. (It's in the Essentials package.) You can find this sort of thing out by groveling through /Library/Receipts -- lsbom(8) will probably be helpful. (Before anyone asks, perl and sh are both part of the BaseSystem package.)


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.

References: 
 >Re: Help -- going posix space crazy (From: "Marc S.A. Glasgow" <email@hidden>)

  • Prev by Date: Re: Understanding a repeat loop (strings/characters)
  • Next by Date: Re: ditto
  • Previous by thread: Re: Help -- going posix space crazy
  • Next by thread: Re: Help -- going posix space crazy
  • Index(es):
    • Date
    • Thread