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.