Finder can't find
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.