subfolder hell

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

subfolder hell Mon Jun 04, 2012 5:47 pm • by IDontDoWindows
rule 1:
if all conditions for the file or folder being matched
kind is folder

do the following
run rules on folder contents

rule 2:
if all conditions are met for the file or folder being matched
kind any file
name contains :

do the following
run applescript embedded script
Code: Select all
tell application "Finder"
   set textFileName to name of theFile
   set name of theFile to (change ":" into " - " in textFileName)
end tell


now, of course this worked previously, and of course it stopped, because god forbid subfolders just worked. what the hell gets this to work?

by the way, the 'change' command is part of the Satimage Osax.
IDontDoWindows
 
Posts: 57
Joined: Sun Jan 07, 2007 5:43 am

Re: subfolder hell Tue Jun 05, 2012 11:58 am • by Mr_Noodle
Did you check the preview? The logs?

Also, is there a reason why you are using an AppleScript. I think that type of renaming can be done in Hazel with the built-in rename action.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support