Re: File Duplication Question
Re: File Duplication Question
- Subject: Re: File Duplication Question
- From: "Stockly, Ed" <email@hidden>
- Date: Fri, 15 Jan 2010 12:59:10 -0800
- Thread-topic: File Duplication Question
Title: Re: File Duplication Question
>> Your script worked perfectly on my Mac.
>> Mine errors out at 256 also.
>> But
>> On the server it errors out after 2 tries.
Ok, first make sure you don’t have a file named “AA” on the server. (Or “AAA...” etc.)
Here’s a version of that script that may give you more useful information about why it’s erroring out. It also delays after the name change command.
It may be that a slow network causes the problem.
If it still errors, paste the error message into a message and send it on.
ES
set myFile to choose file
set newFileName to ""
repeat with x from 1 to 300
set newFileName to newFileName & "A"
tell application "Finder"
try
set the name of myFile to newFileName
delay 1
on error errtext number errNum
display dialog errtext & " " & errNum & return & (x as text) & return & newFileName default answer errtext & " " & errNum & return & (x as text)
exit repeat
end try
end tell
end repeat
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden