Re: I made a nightmare
Re: I made a nightmare
- Subject: Re: I made a nightmare
- From: Yvan KOENIG <email@hidden>
- Date: Wed, 09 Dec 2015 17:57:55 +0100
Le 2015/12/09 à 17:47, Christopher Stone < email@hidden> a écrit :
On Dec 09, 2015, at 09:51, Yvan KOENIG < email@hidden> wrote: What is puzzling is the fact that even when I use tell me to, set dest to quoted form of Posix path of aString -- which is a correctly formed path - fails too
______________________________________________________________________
Hey Yvan,
Quoted form is for use with do shell script NOT with path strings in AppleScript.
Applescript Language Guide:
quoted form
Access: read only
Class: text (page 123)
A representation of the text that is safe from further interpretation by the shell, no matter what its contents are.
Mainly useful for passing a text string to the do shell script (page 163) command.
_
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
Yvan KOENIG running El Capitan 10.11.2 in French (VALLAURIS, France) mercredi 9 décembre 2015 17:55:31
|
_______________________________________________
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