Le 9 oct. 2006 à 21:51, Yvan KOENIG a écrit :
Le 9 oct. 2006 à 21:33, Paul Berkowitz a écrit :
Is this known to be broken?
set n to "someName.txt"
duplicate (choose file) to (choose folder) with properties {name:n}
That snippet won't compile in a Finder block which complains about the "{"
but since duplicate is a Standard Editions verb it doesn't need the Finder. As
is it hangs in some kind of internal problem without duplicating the file to
the chosen folder.
'duplicate' is NOT a Standard Additions command, Adam. Because it is part of
the Standard Suite, i.e. a reserved AppleScript keyword, it will compile
outside a tell block. But it will not execute except in a tell block
directed to an application which has implemented it. The Finder does
implement 'duplicate', of course, but there is no 'with properties {}'
modifier, neither required nor optional.
Nor is there in any other
application which implements 'duplicate'.
Are you sure of that?
As I wrote in:
Objet : Rép : duplicate
Date : 9 octobre 2006 21:20:22 HAEC
System Events offers this feature.
(*
duplicate v : Copy object(s) and put the copies at a new location.
duplicate reference : the object for the command
to location reference : The location for the new object(s).
[with properties record] : Properties to be set in the new duplicated object(s).
*)