I'm trying to do this very simple Applescript for text manipulation.

enter image description here

It runs from the service menu, in some applications. Questions:

  1. What's wrong with my script?
  2. Sometimes it shows up in the services menu and sometimes it doesn't. Any advice on this?

My goal is to do this with pure Applescript, but this first step is the hard one.

  • Should work fine. Where exactly doesn't it work for you? – slhck Dec 22 '12 at 20:26
  • Thanks for your comment. Right now all apps are showing "No services apply" in the services menu from TextMate or Sublime Text 2 or Evernote. Not sure how to proceed. Sorry, evernote is showing some services, but not the new one I created. – Dan Rosenstark Dec 22 '12 at 22:27
  • @slhck the services do appear in system preferences, though – Dan Rosenstark Dec 22 '12 at 22:33

The input type is set to text, so the service is only available when there's a text selection. Try changing it to no input (and reopening applications).

  • I change it to "no input" or select some text and it appears in the menu and works +1. But even with "no input" selected, it only appears in the menu when some text is selected. Any way to get it to work without selecting text? – Dan Rosenstark Dec 23 '12 at 14:50
  • Did you try quitting and reopening applications after changing the input type? – Lri Dec 27 '12 at 11:52
  • Definitely did. This whole thing is very confusing. Not sure why, but with Quicksilver it all works really well. I couldn't get Fastscripts to work nor this solution. Anyway, I'll close this question for now. – Dan Rosenstark Dec 28 '12 at 1:36
  • Loving Spark right now shadowlab.org/Software/spark.php, BTW – Dan Rosenstark Sep 11 '14 at 17:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.