• 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: including osaxen in script vs application bundles
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: including osaxen in script vs application bundles


  • Subject: Re: including osaxen in script vs application bundles
  • From: has <email@hidden>
  • Date: Mon, 2 Jun 2008 14:53:38 +0100


Emmanuel wrote:

I would now like to confirm with those in the know that I
haven't missed anything.

Doh. Me who thought that you were one of those in the know. :-)


No, I'm just a good guesser. In this case I would hazard a guess that loading scripting additions from within a bundle is the responsibility of OS X's native application frameworks rather than the OSA API or AppleScript language component. And I'm also pretty certain that there isn't a public API to allow anyone else to extend the standard search paths.

The reason I ask is because I'd like Loader-based modules to include any osaxen they need within the module bundle so that end-users don't have to download and install these separately (c.f. Python eggs). For example, the new ConvertToString module uses an osax to convert Applescript values and application references to strings without resorting to evil, unreliable hacks. Obviously it would be much more convenient to both script developers and end-users if that osax doesn't require separate, manual installation before running a script that uses that module.

The problem is that I can't seem to find a way to load that osaxen unless it is put in an application bundle or standard ScriptingAdditions folder. If it's impossible to keep the osax in the module bundle then I'll need to figure out an alternative solution, but it won't be nearly as efficient, elegant or scripter- and user- friendly, however, so if there's a better way then I'd really like to know.

Cheers,

has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Prev by Date: Re: background color
  • Next by Date: Re: background color
  • Previous by thread: Re: including osaxen in script vs application bundles
  • Next by thread: Re: How to paste styled text into a footnote in "Microsoft Word"
  • Index(es):
    • Date
    • Thread