Vous lisez mes messages et vous faites bien. Le 13/02/08 16:34, Jolly Roger
a écrit :
> In article <towb-B034AE.11111013022008@[EMAIL PROTECTED]
>,
> Tobias Weber <towb@[EMAIL PROTECTED]
> wrote:
>
>> In article <uce-E2CB8C.17291712022008@[EMAIL PROTECTED]
>,
>> Gregory Weston <uce@[EMAIL PROTECTED]
> wrote:
>>
>>> You have an application. The application does not export any
AppleScript
>>> functionality, but it *does* put a utility in the system's Services
menu
>>> and you'd like to know if there's a way you can invoke that service
from
>>> AppleScript such that it will manipulate data you've got in a
desirable
>>> way.
>>
>> The point is something like
>> http://gild.wordpress.com/2006/12/07/sidekick-14-available-now/
for
>> Office 2008
>>
>>
<http://developer.apple.com/documentation/Cocoa/Conceptual/SysServices/Ta
>> sks/using.html> has NSPerformService which should be useable from AS
>> Studio or via the command line utility included with
>> http://software.jessies.org/salma-hayek/
>>
>> I'll experiment ;)
>
> It's obvious AppleScript isn't the best way to do what you want. You
> should explore using Cocoa instead, IMO.
What about the System Events scripting? Maybe it's not the sexiest way but
you can sometimes do wonders with them. It's like clicking a Menu item and
then filling a field in a window, isn't it?
--
Jean-Marie
« Mi ricordo che un giorno... in mezzo a noi venne un tipo... che ogni
cosa
pensava giusto e la fonte della vita era in lui disse una frase... mi
rimase
impressa: "Alzati ...e cammina!"... » (Adriano Celentano, «Cammino»)


|