Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
    
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
up vote 1 down vote accepted

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).

share|improve this answer
    
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? – user495470 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

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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