• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Talking to other apps - again
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Talking to other apps - again


  • Subject: Re: Talking to other apps - again
  • From: Alex Zavatone <email@hidden>
  • Date: Wed, 06 Aug 2014 11:05:26 -0400

AppleScript can be a royal PITA with the syntax differences.  You might want to read up on ASOC, AppleScript Objective-C.  Shane Stanley has written a load on that (books too) and there is an ASOC dev mailing list that he frequents.

Mailing list:
ASObjC <email@hidden>

URL:
http://www.macosxautomation.com/applescript/apps/


By the way, if you do want to check out XPC, there is a good tutorial on objc.io here:

http://www.objc.io/issue-14/xpc.html

Good luck,
Alex Zavatone



On Aug 6, 2014, at 10:41 AM, Gerriet M. Denkmann wrote:

>
> On 6 Aug 2014, at 12:46, Jens Alfke <email@hidden> wrote:
>
>>
>>> On Aug 5, 2014, at 10:06 PM, Gerriet M. Denkmann <email@hidden> wrote:
>>>
>>> Scripting Bridge SBObject has a sendEvent:id:parameters:. Not sure I want to use this.
>>
>> It seems like your best bet, actually.
>>
> You are right. I just gave up on using raw Apple Events.
>
>> The typical route is that you implement scriptability in the target app, including the terminology file that describes what commands and objects it handles,
>
> App B got an sdef already. B, by the way, is NOT document based.
>
> Apple Script Editor can do:
>
> tell application "B"
> 	get version
> end tell
>
> Now the app delegate, called BeDelegate, has a property
> 	@property (readonly)  NSString *babbel;
> implemented as:
> 	- (NSString *)babbel { return @"Bibbel"; }
>
> But how to write an apple script to get this magic Bibbel-string? And how to write the sdef to make this possible?
> And what else does my BeDelegate has to implement?
>
> You see, I am absolutely clueless.
>
> Kind regards,
>
> Gerriet.
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Talking to other apps - again
      • From: "Gerriet M. Denkmann" <email@hidden>
References: 
 >Talking to other apps - again (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: Talking to other apps - again (From: Jens Alfke <email@hidden>)
 >Re: Talking to other apps - again (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Re: Talking to other apps - again
  • Next by Date: Re: Talking to other apps - again
  • Previous by thread: Re: Talking to other apps - again
  • Next by thread: Re: Talking to other apps - again
  • Index(es):
    • Date
    • Thread