Re: what is error -1753?
Re: what is error -1753?
- Subject: Re: what is error -1753?
- From: Axel Luttgens <email@hidden>
- Date: Mon, 26 Jan 2004 10:17:09 +0100
Donald Hall wrote:
I am trying to use the Finder duplicate command, but I keep getting an error:
Finder got an error: Script error.
Error Number -1753"
Can anyone tell me what this might mean? I was sure I had it working earlier.
My script looks something like:
-----------------------------------------------------
set sourceFile to (choose file with prompt "Choose file to duplicate")
set targetFolder to (choose folder with prompt "Choose target folder")
try
tell application "Finder"
set sourceFileName to name of sourceFile as text
set backupFile to duplicate sourceFile to targetFolder with
replacing --<-- fails here
end tell
display dialog "Duplication of " & sourceFileName & " was successful"
on error errMsg number errNum
display dialog errMsg & return & "Error Number " & errNum
end try
------------------------------------------------------
Not sure if it is related, as you seem to speak about a run time error
(Finder got an error...), but I get here a compile time error.
I need to type "replacing yes" instead of "with replacing".
Axel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.