• 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: I made a nightmare
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I made a nightmare


  • Subject: Re: I made a nightmare
  • From: Yvan KOENIG <email@hidden>
  • Date: Wed, 09 Dec 2015 19:16:58 +0100


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:

http://lists.apple.com/archives/applescript-users/2015/Dec/msg00052.html

--
Take Care,
Chris

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




 _______________________________________________
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: I made a nightmare
      • From: Christopher Stone <email@hidden>
    • Re: I made a nightmare
      • From: Yvan KOENIG <email@hidden>
References: 
 >I made a nightmare (From: Yvan KOENIG <email@hidden>)
 >Re: I made a nightmare (From: Axel Luttgens <email@hidden>)
 >Re: I made a nightmare (From: Yvan KOENIG <email@hidden>)
 >Re: I made a nightmare (From: Christopher Stone <email@hidden>)
 >Re: I made a nightmare (From: Yvan KOENIG <email@hidden>)
 >Re: I made a nightmare (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: I made a nightmare
  • Next by Date: Re: I made a nightmare
  • Previous by thread: Re: I made a nightmare
  • Next by thread: Re: I made a nightmare
  • Index(es):
    • Date
    • Thread