• 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
EOF Error passing "quoted form of the POSIX path" to "do shell script"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EOF Error passing "quoted form of the POSIX path" to "do shell script"


  • Subject: EOF Error passing "quoted form of the POSIX path" to "do shell script"
  • From: Jonathan Piccolo <email@hidden>
  • Date: Wed, 24 Oct 2007 07:36:00 -0400

I'm using the following piece of code in a script:

do shell script "'ditto " & quoted form of the POSIX path of "~/Desktop/Archive/Library/Application Support/ /Library/Application Support/"

and it's giving me the following error:

AppleScript Error
sh: -c: line 1: unexpected EOF while looking for matching `''
sh: -c: line 2: syntax error: unexpected end of file

after which it then it highlights the entire line shown above (I assume to tell me that it's the culprit).

I've read and re-read the Apple Tech Note on how to deal with certain characters in pathnames (found here: <http://developer.apple.com/technotes/tn2002/tn2065.html#TNTAG4>) but to no avail. Anyone slay this dragon yet and care to share? Thanks!

Regards,

Jonathan Piccolo
---------------------------------------------------
email@hidden
http://www.callthemacwizard.com


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: EOF Error passing "quoted form of the POSIX path" to "do shell script"
      • From: email@hidden
    • Re: EOF Error passing "quoted form of the POSIX path" to "do shell script"
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: Which app to target?
  • Next by Date: Re: EOF Error passing "quoted form of the POSIX path" to "do shell script" [Solved]
  • Previous by thread: Re: Is it possible to Applescript the deletion and addition of items from a Finder window's sidebar?
  • Next by thread: Re: EOF Error passing "quoted form of the POSIX path" to "do shell script" [Solved]
  • Index(es):
    • Date
    • Thread