• 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
Renaming a file...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Renaming a file...


  • Subject: Renaming a file...
  • From: Monsoft <email@hidden>
  • Date: Fri, 17 May 2002 11:02:28 +0200

Hi,

Beginning to evaluate Applescript with MacOS X 10.1.4:
I have to duplicate a file in another folder and change his name. Simple.

tell application "Finder"
set myDuplicateFile to duplicate file myFile to folder myFolder
-- work fine
set the name of the file myDuplicateFile to myNewName
-- I'm enable to rename the file!
end tell

Got a -10001 error "a descriptor type mismatch occured".

The same script worked fine under MasOS 9
What's wrong?

Laurent Wallard
__________________Oooo._________
oooO ( )
( ) ) /
\ ( (_/
\_)
_______________________________________________
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.

  • Follow-Ups:
    • Re: Renaming a file...
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Re: Shut down OS X script
  • Next by Date: Hello, I'm new here (now there's a classic)
  • Previous by thread: Re:Scripting QuickTime QTVR - still need assistance
  • Next by thread: Re: Renaming a file...
  • Index(es):
    • Date
    • Thread