Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Faster, More Compact v2' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Faster, More Compact v2
Authored by: nicksay on Nov 06, '05 09:39:52PM
If you have the Developer Tools installed, then you can run an improved version of this script. You can use the SetFile tool to hide the burn folder extension in the Finder. Use the following code in place of the above:
#!/bin/bash
for i in "$@"; do if [ -d "$i" ]; then
	i="${i%/}"; f="${i##*/}"; p="${i%/*}"; e="e"
	[[ "$f" = "$p" ]] && p="."
	[[ $f == *.fpbf ]] && n="${f%.fpbf}" || { n="$f.fpbf"; e="E"; }
	sf="/Developer/Tools/SetFile"
	[ -x "$sf" ] && $sf -a $e "$i"
	mv -v "$i" "$p/$n"
fi; done
If you're making this an automator action, make sure your shell is /bin/bash and be sure pass the input as arguments.

[ Reply to This | # ]