[OS X TeX] How to make locate/spotlight search ~/Library/texmf
Herbert Schulz
herbs at wideopenwest.com
Tue Aug 10 17:00:22 EDT 2010
On Aug 10, 2010, at 3:32 PM, Michael Sharpe wrote:
>
> There is a way to get Spotlight functionality with access to system and ~/Library/texmf files, using the Automator that came with Snow Leopard. Create an application, drag "Find Finder Items" onto the right hand panel, the select "Computer", "All" and "Any Content". Then, under Options, check "Show this action when workflow runs". Next, drag "Filter paragraphs" to the right panel, underneath "Find Finder Items", and set it to Return paragraphs that do not end with .emlx". After that, drag "Run Applescript" onto the right panel under the two other items, and enter the following:
>
> on run {input, parameters}
> set dq to ASCII character 34
> set AppleScript's text item delimiters to ASCII character 10
> set dat to input as text
> tell application "Terminal"
> activate
> delay 1
> do script ("echo " & dq & dat & dq) in window 1
> end tell
> end run
>
> Then save the application, say as myfind.app. You can set a hotkey for it under System preferences/Keyboard. The end result is that when you hit the hotkey, the Find Finder Items dialog will appear, and after pressing Continue, you will see a list in a Terminal window of all files containing the specified text.
>
> Michael
Howdy,
I'm going to have to try this! Thanks for the inforamtion.
Good Luck,
Herb Schulz
(herbs at wideopenwest dot com)
More information about the MacOSX-TeX
mailing list