View Single Post
03-20-2007   #7 (permalink)
mdmunoz
Concierge
 
mdmunoz's Avatar
 
Join Date: Nov 2006
Location: Davis, CA
Posts: 643
mdmunoz has disabled reputation
Send a message via AIM to mdmunoz
Quote:
Originally Posted by DTrate View Post
This is a great script! I have no knowledge of Applescript whatsoever, yet I have been able to get it to work.

However, it displays my tags as a (seemingly) random list of words -- is there any way to alphabetize it by modifying the script (or otherwise)?
All you have to do is change
Quote:
do shell script "grep string " & (quoted form of POSIX path of QuicksilverTags) & " | awk {'print $1'}"
To
Quote:
do shell script "grep string " & (quoted form of POSIX path of QuicksilverTags) & " | awk {'print $1'} | sort"
on the second line of code (a sort pipe is added at the very end).

If you want reverse order, use "sort -r" instead of "sort"

Last edited by mdmunoz; 03-20-2007 at 11:27 PM.
mdmunoz is offline   Reply With Quote