Results 1 to 7 of 7

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.

Thread: Roll your own Services in Snow Leopard

  1. #1
    MMi Staff Writer Paul Daniel Ash's Avatar
    Join Date
    Aug 2009
    Union Square, Somerville, Mass.
    Thanked 995 Times in 401 Posts

    Default Roll your own Services in Snow Leopard

    The Services menu was a confusing mess in Leopard, but it finally comes into its own in the 10.6 release. You used to see every Service on the system in the Services menu ("Chinese Text Converter?" WTF), but now it only shows what Services are available in the application you're running. You can also get a Services submenu in the secondary-click (i.e. ctrl-click, right-click, two-finger-tap) menu of any actionable item. What's probably most helpful for workflow, though, is the ability to create your own Services using Automator. If you haven't explored the power of Automator, it's an excellent time to start if you've upgraded to Snow Leopard.

    As opposed to the old Leopard days - when every application installed items in the Services menu willy-nilly - you, the user, now have complete control over what is in the Services menu, using the Keyboard Shortcuts tab of the Keyboard System Preferences panel. If you click on Services, you can see every service installed on your Mac. Tick the checkboxes to enable the ones you want or disable the ones you won't use. This is all in the Keyboard Preferences pane because you can assign keyboard shortcuts to Services - it's a bit of a non-intuitive place to find it, but fortunately there's a "Services Preferences" link in the Services menu to point you in the right direction.

    Apple has kicked things off by providing some Services for free download. Take a look at the Mac OS X Automation page, where you can download services for Terminal, Finder, the media picker, PDF files, photographs, movies, the Internet, etc. You can install them (Apple provides them in .pkg format so it loads them automagically in your ~/Library/Services or /Library/Services folder, depending on whether you choose "All Users" or "Current User") or open them in Automator to see how they work. This is the genius of Automator and modular Services in my opinion: the ability to open the hood and tinker around.

    As an old Unix jock, I like the how Automator has brought the concept of command output redirection to the desktop, and in a nice, unintimidating, graphical way. A cool example of this is shown in the Paragraph Sorting Service tutorial at Mac OS X Automation. This Service allows you to select lines of text, dump them to command-line sort, and then pastes the result back into your application.

    Services did exist in Leopard, and Automator could edit them, but 10.6 brings the innovation of making Services system-wide, so that you can reuse Services in different applications. This is classic Unix hackery, and opens up the Mac OS architecture to innovation in an extremely powerful way.

    I'm always looking for ways to make my workflow smoother, and I like playing with the capabilities of my system. Apple's created a way for mere-mortal users to add real functionality across applications, and I'm sure that we'll see a real proliferation of downloadable services in the days to come.
    Last edited by Paul Daniel Ash; 2009-09-03 at 05:50 PM. Reason: typos

  2. #2
    Default thx!
    been reading your tour of the new Snow Leopard, which I am not using, but need to get familiar with for for a tween who is getting a new laptop, and always maxes out the abilities of her PCs, due to very heavy social networking.

  3. #3
    that why getting a mac will be great because going to websites a lot won't ruin it....because that shouldn't ruin any computer
    iEat. iSleep. iPhone.

  4. #4
    My iPhone is a Part of Me Frostbite's Avatar
    Join Date
    Jun 2009
    over the hill across the river and through the candy cane forest
    Thanked 72 Times in 61 Posts

    Great feature, another reason macs are AWESOME!

  5. #5
    My iPhone is a Part of Me rwin84's Avatar
    Join Date
    Nov 2007
    Orlando, FL
    Thanked 16 Times in 16 Posts

    I'm gonna automate my services with my cntrl click gesture control.
    This is getting a lil' ridiculous...

  6. #6
    iPhoneaholic xwinger's Avatar
    Join Date
    Jul 2008
    Calgary, Canada
    Thanked 26 Times in 24 Posts

    i never understood why every app had the same services. im glad its fixed
    I am not a jailbreak n00b
    I like to drink iPhoneahol...
    Circa 2008

  7. #7
    iPhone? More like MyPhone mdc929's Avatar
    Join Date
    Jul 2007
    Thanked 5 Times in 3 Posts

    Quote Originally Posted by andypropaganda View Post
    that why getting a mac will be great because going to websites a lot won't ruin it....because that shouldn't ruin any computer
    haha agreed
     is the way to go

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts