Le 2015/12/09 à 19:05, Christopher Stone < email@hidden> a écrit :
On Dec 09, 2015, at 10:57, Yvan KOENIG < email@hidden> wrote: If you read carefully, you will see that the quoted paths are used in a do shell script command.
It’s exactly what is written in AppleScript User Guide.
set posixDest to my quoteIt(dest) # define it only once repeat with aFile in movableFiles set qSource to my quoteIt(path of aFile) # define the quoted form of each file do shell script "mv " & qSource & space & posixDest end repeat ______________________________________________________________________
Hey Yvan,
Perhaps I missed it, but I don't see a do shell script statement in this thread anywhere other than this newest post of yours.
Start of thread:
You missed nothing. Just my fault.
The script posted when I started this thread is just the code supposed to create the quoted POSIX path. The problem is not quoted form, it’s POSIX path.
It’s just a subset of a script supposed to use these quoted paths in do shell script instruction.
It’s this part - a loop - of the full script which I posted in my late message. I have no problem when the POSIX paths are built, I have some when I try to build them.
I will probably add the quoteIt handler in all my scripts supposed to build POSIX paths. I will just change its name to highlight the fact that what is important is not quote but POSIX. Will use on quotePOSIXit(aPath)
Yvan KOENIG running El Capitan 10.11.2 in French (VALLAURIS, France) mercredi 9 décembre 2015 19:16:50
|