Re: how can script bundles store extra stuff?
Re: how can script bundles store extra stuff?
- Subject: Re: how can script bundles store extra stuff?
- From: has <email@hidden>
- Date: Sun, 24 Jul 2005 22:51:04 +0100
Jon Pugh wrote:
> >Though FWIW, there should be at least a few more applications that do the right thing now, i.e. those that only use OSALoadFile() and don't provide custom 'path to' handling.
>
>InDesign provides an "active script" property which is the current script file being run by InDesign.
>
>This is a better model than the "path to me" hack.
Better inasmuch as it doesn't come with any of the baggage that 'path to me' has. How does it cope with libraries though?
IMO, providing the script's path should be done by the OSA, with OSA obtaining the path automatically when OSALoadFile is used, and allowing the application to optionally supply one when OSALoad and OSACompile are used. That way you've a standard system that all application developers can code to, and all scripts loaded from file know exactly where they came from. Scripts shouldn't have to [directly] ask an application where they came from, they should know it for themselves.
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden