TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

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 want to open the MacOSX application Photo Booth (starting the iSight camera) from a link in a presentation pdf file. I use the hyperref command

\href{run:photoscript}{Link text}

to call 'photoscript', which contains a single line:

open -a Photo\ Booth

The application opens alright, but the undesired effect is that a Terminal window appears with

/Users/me/photoscript ; exit;

[Process completed]

How can I prevent this Terminal window from showing up?

share|improve this question
I think this question isn't part of LaTeX. I think a mac-forum is more efficient. – Marco Daniel Aug 30 '11 at 21:25
up vote 2 down vote accepted

Assuming you're only doing this with OS X, you could use Applescript for your command.

Open the AppleScript Editor (found in the Utilities folder) and make the following script:

tell application "Photo Booth" to activate

Save this as an application, and then make your link:

share|improve this answer
Thank you, Alan, this works. – Tiong Bahru Aug 31 '11 at 4:59

Your Answer


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.