• 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
Finder can't find
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finder can't find


  • Subject: Finder can't find
  • From: Sovereign Diamonds <email@hidden>
  • Date: Tue, 15 Apr 2003 08:08:57 +0100

I have a folder full of jpegs that I wish to rename using a file that
contains separate lines "OldName <tab> NewName", but Finder produces an
error saying that it can't find "OldName" using this script:

set FolderOfImages to choose folder with prompt "Select the folder where the
images are stored"
set FileWithNames to choose file with prompt "Select the file for the
conversion"
set FileContent to paragraphs of (read (FileWithNames))
set oldDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to tab
repeat with x in FileContent
set OldName to first item of text items of x
set NewName to last item of text items of x
tell application "Finder" to set name of (((FolderOfImages as string) &
OldName) as alias) to NewName
end repeat
set AppleScript's text item delimiters to oldDelims

Any help would be appreciated?

Regards
David McMillan
http://www.sovereigndiamonds.com
United Kingdom
_______________________________________________
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: Finder can't find
      • From: John Delacour <email@hidden>
    • Re: Finder can't find
      • From: david <email@hidden>
    • Re: Finder can't find
      • From: Michelle Steiner <email@hidden>
  • Prev by Date: Re: creator & type codes???
  • Next by Date: Re: Disk mounted
  • Previous by thread: Re: Palm Desktop Script 101?
  • Next by thread: Re: Finder can't find
  • Index(es):
    • Date
    • Thread