[TxMt] Enter to open URL - cmd-enter to open in background?

Adam R. Maxwell amaxwell at mac.com
Sat Oct 28 15:32:13 UTC 2006


On Oct 28, 2006, at 07:46, Allan Odgaard wrote:

> On 28. Oct 2006, at 16:41, Timothy Bates wrote:
>
>>> The problem is that there is no API for that.
>>
>> AppleScript does this for you without activating the application
>>
>> tell application "WebKit"
>>     --activate --commented out to show the difference
>>    open "www.psy.ed.ac.uk"
>> end tell
>>
>> So that's one solution - I bet it is what mail.app uses. We could  
>> tell by
>> snooping on apple events
>
> Mail has this feature?

So does NetNewsWire Lite, IIRC.  I believe you can do it in code with  
LSOpenFromURLSpec using the appropriate launch flags, unless you  
require a scripting solution.

Adam



More information about the textmate mailing list