Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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;
logout

[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
add comment

1 Answer

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:

\href{run:photoscript.app}{PhotoBooth}
share|improve this answer
    
Thank you, Alan, this works. –  Tiong Bahru Aug 31 '11 at 4:59
add comment

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.