Re: duplicate
Re: duplicate
- Subject: Re: duplicate
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 09 Oct 2006 12:33:49 -0700
- Thread-topic: duplicate
Title: Re: duplicate
On 10/9/06 12:10 PM, "Adam Bell" <email@hidden> wrote:
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'. (Once again, this will compile because they are all reserved keywords.) 'with properties' is only implemented for 'make [new]' command, which you have not used here. So of course it won't work. It ought to just error, not hang, though.
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >duplicate (From: Adam Bell <email@hidden>) |