• 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: Script determines its path on run
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script determines its path on run


  • Subject: Re: Script determines its path on run
  • From: Paul Skinner <email@hidden>
  • Date: Mon, 16 Jun 2003 10:08:16 -0400

On Monday, June 16, 2003, at 08:11 AM, John Delacour wrote:

At 11:24 am +0200 16/6/03, Matyas Ferenc Farkas wrote:

Is there a method to determine the path of a running script on run? I have
to do things with a script in a folder what is contained the folder of the
script, but I do not know more detail.

Provided the script is run as an applet ir droplet, 'path to me' will give you its path as an alias from which you can get any relative > path.

on run -- or whatever
set f to (path to me) as string
display dialog f
end


JD

Provided the script has no Parent property pointing at something other than itself.

Paul
_______________________________________________
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: Script determines its path on run
      • From: John Delacour <email@hidden>
References: 
 >Re: Script determines its path on run (From: John Delacour <email@hidden>)

  • Prev by Date: Re: Why save text item delimiters? Philosophical question....
  • Next by Date: 24U Email OSAX updated
  • Previous by thread: Re: Script determines its path on run
  • Next by thread: Re: Script determines its path on run
  • Index(es):
    • Date
    • Thread