On Sep 8, 12:11 am, Alex Popescu <alexan...@mypopescu.com> wrote: > Hi, > > A kind BBEdit user (ascarter) has been kind enough to put together an > AppleScript that trigger ctags [1]. Following the instructions in the > BBEdit manual I've modified this script to have a on documentDidSave > function that triggers makeTags. > > As per the manual, I've named the script Document.documentDidSave.scpt > and saved it into my ~/Dropbox/Application Support/BBEdit/Attachment > Scripts folder. > > But the script doesn't seem to be triggered at all. I've removed most > of the code in the original and just left inside: > > on documentDidSave() > display dialog "BBEdit on documentDidSave" buttons {"Yes", "No"} > default button 2 with icon 1 > -- makeTags() > end documentDidSave > > but still no results. Any ideas what I'm doing wrong? > > [1]https://github.com/ascarter/BBEdit-ApplicationSupport/blob/master/Scr...
As always, seconds after posting the question I've figured it out: 1. script location is correct (Application Support/BBEdit/Attachment Scripts) 2. script name was correct (Document.documentDidSave.scpt) 3. when saving the script make sure it is saved as: Script with the Run only option checked 4. it works A:// -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com For more options, visit this group at <http://groups.google.com/group/bbedit?hl=en> If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group. Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>