Skip to content

Instantly share code, notes, and snippets.

@rwilcox
Created September 11, 2011 14:36
Show Gist options
  • Select an option

  • Save rwilcox/1209666 to your computer and use it in GitHub Desktop.

Select an option

Save rwilcox/1209666 to your computer and use it in GitHub Desktop.
CTags Applescript for BBEdit
tell application "BBEdit"
-- select the top level item of the project directory
set runcTagsIn to project window 1's selected items
if (runcTagsIn is missing value) or runcTagsIn is {} then
display dialog "plesae select the top level directory!"
end if
set uPath to POSIX path of (item 1 of runcTagsIn)
display dialog "Going to run ctags in " & uPath & ". Is this OK?"
do shell script "cd '" & uPath & "'; /usr/local/bin/bbedit --maketags"
display dialog "done"
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment