Questions tagged [osx-services]

OS X Services allow sharing data and capabilities across applications. They are invoked by the user either through the active application menu's "Services" submenu or via keyboard shortcuts, typically to act on the data selected in the currently active application.

Note:
- OS X Services are user-facing and user-initiated functionality, unlike what the term "service" may suggest.
- This tag is the equivalent of the "services" tag on Ask Different.

OS X Services (formerly: System Services) allow a user to access the functionality of one application from within another application.
They can be conceptualized as the GUI analog to pipes in shell commands: a user-initiated way of passing arbitrary data from arbitrary applications to specialized applications that advertise services capable of handling such data.

Typically, a service invoked by the user acts on the current selection of the active application; for instance, the built-in "Look Up in Dictionary" service - available while any application in which text is selected is active - looks up the selected text in the Dictionary application.

A user typically invokes a service in one of two ways:

  • From the active application's menu, via (application-menu) > Services > ... - only services applicable to the state of the active application (presence or absence of selected data and their type) will be presented.

  • Via dedicated keyboard shortcuts assigned or activated at System Preferences > Keyboard > Shortcuts > Services; there you can also opt to persistently deactivate services.

Service providers:

  • OS X comes with several services built in.

  • Applications can define their own services (and consume other applications') via the Cocoa API (AppKit framework).

  • It is also possible to build services stand-alone, outside of any application, which is most easily achieved with Automator, the standard workflow-authoring tool.

6 questions
4
votes
3 answers

Execute a shell command on a file selected in the Finder

I'm a very novice and infrequent applescript experimenter. I've tried for several hours now to learn the individual applescript commands for the following task, but I always run into errors. Perhaps someone much more adept at applescript will find…
Arty14
  • 41
  • 3
2
votes
4 answers

Custom Keyboard Shortcut Service Not Working 10.11 (el capitan)

I've seen a few questions dealing with this issue but nothing recently. I'm not sure if El Capitan (10.11) is breaking something, and I'm an AppleScript (and Automator) newbie. I just want to have the basic functionality where a keyboard shortcut…
Water Crane
  • 43
  • 1
  • 9
1
vote
0 answers

Mac OS X Server with multiple iOS simulator

We are working in a small team making Xamarin apps in Android and iOS. We want increase the team and we are looking for the best way in order to minimice the hardware cost. Our first option is buy as many macs as employees. The second one is buy a…
dario
  • 170
  • 1
  • 14
0
votes
1 answer

Automator Service for Terminal commands with variables

I'm an artist looking for automating some processes. Unfortunately, I'm too far from coding to wrap my head around even this seemingly elementary problem. I'm crying for professional's help with this task: I need to create a service via Automator…
Stan
  • 11
  • 2
0
votes
1 answer

OSX Services - character substitution + for _

I've created a service to use primarily in a browser for searching IMDB, so instead of copying and pasting the film's name I just select the text and run the service I created which will automatically search IMDB for the selected text. This works…
Frasier013
  • 301
  • 1
  • 3
  • 10
-2
votes
2 answers

Automator service script fails at detecting open app when tell application block is used

I wrote a little service script to open an iTerm terminal window on an arbitrary folder on Finder. I want it to check if iTerm is running, and if it is to open the terminal session in a new tab instead of on an existing one. The script goes like…
yivi
  • 42,438
  • 18
  • 116
  • 138