• 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: Do Shell Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Do Shell Script


  • Subject: Re: Do Shell Script
  • From: Christopher Nebel <email@hidden>
  • Date: Mon, 24 Oct 2005 09:24:35 -0700

On Oct 23, 2005, at 11:57 PM, John Mitchell wrote:

From the Retrospect log the path types are :

mitchX/Applications/Personal Applications/MYOB AccountEdge 3/ Tutorial/ANZ.qif
mitchX/Users/johnmitchell/Library/Preferences/Interarchy/Bookmarks/ Web/Essentials/Groups

Is that really what's in the Retrospect log? If so, then they're being bizarre to you. Those look like HFS paths with the colons translated to slashes, which is just wrong. Absolute POSIX paths start with a slash, and don't contain the disk name unless they route through "/Volumes" first.


You could get a usable POSIX path out of that by either deleting the "mitchX" or by changing the slashes to colons (I suspect you'll also need to change any colons to slashes -- have you got any files like that?) and then treating it as an HFS path. (And then *don't* make it home-directory-relative as in your original script!)



--Chris Nebel
AppleScript and Automator Engineering

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Do Shell Script (From: John Mitchell <email@hidden>)

  • Prev by Date: Re: Do Shell script
  • Next by Date: Re: Finding \t, \r, \n reliably
  • Previous by thread: Do Shell Script
  • Next by thread: Re: Do Shell Script
  • Index(es):
    • Date
    • Thread