Re: EOF Error passing "quoted form of the POSIX path" to "do shell script"
Re: EOF Error passing "quoted form of the POSIX path" to "do shell script"
- Subject: Re: EOF Error passing "quoted form of the POSIX path" to "do shell script"
- From: Jonathan Piccolo <email@hidden>
- Date: Thu, 25 Oct 2007 22:26:16 -0400
Thanks, Mark.
I only pasted the line of my entire script that was giving me the
trouble so it may seem a bit like a retarded script :)
As for the way I am passing the POSIX path, I'm just following the
recommendation in this Apple TechNote when dealing with "certain
characters" in the path name (i.e. spaces): <http://
developer.apple.com/technotes/tn2002/tn2065.html#TNTAG4>
Hope this clears up a bit of the mystery. BTW, the script is working
perfectly now. Thanks to all that helped!
Regards,
Jonathan Piccolo
---------------------------------------------------
email@hidden
http://www.callthemacwizard.com
On Oct 24, 2007, at 9:02 AM, email@hidden wrote:
A couple more things:
On 10/24/07, Jonathan Piccolo > do shell script "'ditto " & quoted
form of the POSIX path of "~/
Pretty sure that won't work. "Quoted form of" wraps the string in
single quotes, which will keep the ~ from turning into the path of
your home directory.
Really, it seems like you have all the pieces of the command already
in shellscript form, so I don't know why you're jumping through all
the hoops intended for translating *into* that form from AppleScript.
I'm not sure why you need AppleScript at all, here, but it seems like
this will do what you want:
do shell script "ditto ~/'Desktop/Archive/Library/Application
Support/' '/Library/Application Support/' "
--
Mark J. Reed <email@hidden>
_______________________________________________
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