• 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: Determining path to script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Determining path to script


  • Subject: Re: Determining path to script
  • From: Christopher Nebel <email@hidden>
  • Date: Tue, 2 Mar 2004 15:48:30 -0800

On Mar 2, 2004, at 12:16 PM, Chap Harrison wrote:

How do I make a script find out its own path? ...

OK, general question here: why do people want to do this? The usual reason, as far as I can tell, is to get at "support files" for the script -- data, templates, script libraries, and so on. What other reasons do people have? If you could use application bundles [1] in a coherent fashion, would that solve your problem? (I'm aware of the "I've got a bunch of scripts that all use the same library" problem, for which the answer is "no.")


--Chris Nebel
AppleScript Engineering

[1] For those who don't know the term, a "bundle" in Mac OS X is a folder that looks like a file in the Finder. You (as the application writer) can toss whatever you like into the folder; there are standard calls for getting at the contents. Many Mac OS X applications are packaged this way.
_______________________________________________
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.


  • Follow-Ups:
    • Re: Determining path to script
      • From: Lachlan Deck <email@hidden>
    • Re: Determining path to script
      • From: Mr Tea <email@hidden>
    • Re: Determining path to script
      • From: Chap Harrison <email@hidden>
    • Re: Determining path to script
      • From: Dave Balderstone <email@hidden>
References: 
 >Determining path to script (From: Chap Harrison <email@hidden>)

  • Prev by Date: Re: script doesn't find all the file in a hiearchy
  • Next by Date: Re: testing for Classic and restarting
  • Previous by thread: Re: Determining path to script
  • Next by thread: Re: Determining path to script
  • Index(es):
    • Date
    • Thread