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

Re: path to a script


  • Subject: Re: path to a script
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 4 Feb 2009 11:03:39 -0800

On Feb 2, 2009, at 6:46 PM, Donald Hall wrote:

When used in a compiled script, "path to me" returns the path to the script in Leopard when the script is run by Script Editor. However, when I run the script with a script running application I wrote (an AppleScript application), I get the pre-Leopard result of the path to the application running the script. Is there any simple way of getting the path to the script in this case? Did someone come up with a way to do this in pre-Leopard days?

Making "path to me" return the path to the script relies on setting up some extra information in the runtime. There's a C API which will do the right thing, and "run script" is supposed to do the right thing if you tell it to run a file -- exactly how are you running your scripts?



--Chris Nebel AppleScript Engineering

_______________________________________________
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
References: 
 >path to a script (From: Donald Hall <email@hidden>)

  • Prev by Date: Re: Value of a date in Numbers
  • Next by Date: Re: Value of a date in Numbers
  • Previous by thread: Re: compare file icons or icon properties
  • Next by thread: Value of an empty cell in Numbers
  • Index(es):
    • Date
    • Thread