• 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: how can script bundles store extra stuff?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: OS 10.4.2: Keychain scripting "Application not running" error
  • Next by Date: Re: how can script bundles store extra stuff?
  • Previous by thread: Re: how can script bundles store extra stuff?
  • Next by thread: Re: how can script bundles store extra stuff?
  • Index(es):
    • Date
    • Thread