• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: what is error -1753?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >what is error -1753? (From: Donald Hall <email@hidden>)

  • Prev by Date: Re: Still more strange things S(
  • Next by Date: Re: Does UI scripting work on MacOSX 10.2?
  • Previous by thread: Re: what is error -1753?
  • Next by thread: Re: what is error -1753?
  • Index(es):
    • Date
    • Thread