• 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: OK, so how *do* you create (and expose) an Applescript dictionary to scripters?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OK, so how *do* you create (and expose) an Applescript dictionary to scripters?


  • Subject: Re: OK, so how *do* you create (and expose) an Applescript dictionary to scripters?
  • From: "Charles Arthur, UKClimbing Editor" <email@hidden>
  • Date: Wed, 23 Jul 2003 23:59:16 +0100

Hi all..

At 1:03 pm -0700 23/7/03, Christopher Nebel wrote:
>On Wednesday, July 23, 2003, at 4:36 AM, Charles Arthur wrote:
..
>> For example, I like an app called Egg Timer, whose source is available
>> at
>> http://homepage.mac.com/estebanuribe/software/eggtimer.html
>>
>> But.. it's written in Obj-C. (Or just C++ - how would I know the
>> difference?)
>
>You have no idea how surreal this question is, do you? It's in
>Objective-C. Do you know C++?

A bit. :-) Which really means "just a bit".

..
>Gee, how did you guess? It's harder than that. While it's possible to
>get a "scriptable" application by linking with AppleScriptKit (and
>adding NSAppleScriptEnabled = YES to your Info.plist), all it gets you
>is user interface scripting, which is not the recommended way to make
>your application scriptable.

Useful to know that. Hey, tell the guys working on the iApps too.

>Fortunately for you, making a Cocoa application scriptable is
>relatively straightforward. If you've learned Objective-C, you've
>probably read some stuff about the model-view-controller paradigm.
>Making an application scriptable is all about exposing your "model"
>layer -- in your case, the Reminder objects -- via scripting.

Thanks, and thanks too to those who also sent on useful clues. I'll have to
see whether I can map them into something useful. But hey, at least we all
know now, right?

Charles
--
http://www.ukclimbing.com : 1,000+ British crags, 350+ British climbing walls
- searchable by distance rock type, etc, with 5-day weather forecasts for
every one - plus maps, articles, news, and the New Routes database. There's
even a cool shop attached...
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >OK, so how *do* you create (and expose) an Applescript dictionary to scripters? (From: Charles Arthur <email@hidden>)
 >Re: OK, so how *do* you create (and expose) an Applescript dictionary to scripters? (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Universal Date Entry (was: Date - 1 day in Address Book)
  • Next by Date: Dictionaries
  • Previous by thread: Re: OK, so how *do* you create (and expose) an Applescript dictionary to scripters?
  • Next by thread: Re: OK, so how *do* you create (and expose) an Applescript dictionary to scripters?
  • Index(es):
    • Date
    • Thread