• 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 walk and chew gum
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Finder can't walk and chew gum


  • Subject: Finder can't walk and chew gum
  • From: John McAdams <email@hidden>
  • Date: Sat, 27 Apr 2002 20:51:44 -0400

I finally gave up on trying to get the finder to walk through a folder of files, deleting some and renaming some. I now move everything I want to rename to a new folder, rename it and then move it back with replacing. Seems to work (of course the other one "seemed" to work at times).

tell application "Finder"
if not (exists folder "FMP Recover" of desktop) then
set recFold to make new folder with properties {name:"FMP Recover"}
else
set recFold to folder "FMP Recover" of desktop
end if
open dbFold
set current view of window "GRL_InvSystem" to list view
close window "GRL_InvSystem"
move (every file of folder dbFold whose (name ends with " Recovered") or (name ends with " Recovered.fp5")) to recFold
set dbFiles to every file of recFold whose (name ends with " Recovered") or (name ends with " Recovered.fp5")
repeat with recovDB in dbFiles
set dbName to name of recovDB
set AppleScript's text item delimiters to the " Recovered"
set reName to every text item of the dbName
set AppleScript's text item delimiters to ""
set reName to reName as string
set the name of recovDB to reName
end repeat
empty trash
move every file of recFold to folder dbFold with replacing
end tell
_______________________________________________
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.
  • Prev by Date: Re: Satimage re_compile regex functions
  • Next by Date: Re: Is Finder "update" command broken in OSX?
  • Previous by thread: Re: Is Finder "update" command broken in OSX?
  • Next by thread: Set BOUNDS to FileMaker Pro
  • Index(es):
    • Date
    • Thread