Re: what is error -1753?
Re: what is error -1753?
- Subject: Re: what is error -1753?
- From: Donald Hall <email@hidden>
- Date: Mon, 26 Jan 2004 22:10:33 -0700
It turns out to have been some kind of problem with Script Editor,
which had been running for several days. It eventually crashed, and
when I restarted it, the script suddenly started working again. -1753
seems to be a generic scripting error.
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
--
Donald S. Hall, Ph.D.
Apps & More Software Design, Inc.
email@hidden
http://www.appsandmore.com
_______________________________________________
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.