• 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: File Duplication Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: File Duplication Question (From: "Stockly, Ed" <email@hidden>)

  • Prev by Date: (no subject)
  • Next by Date: Re: iCal alarm scripts
  • Previous by thread: Re: File Duplication Question
  • Next by thread: trigger a sync in itunes to apple tv
  • Index(es):
    • Date
    • Thread