• 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: John Delacour <email@hidden>
  • Date: Mon, 16 Jun 2003 13:11:24 +0100
  • Mac-eudora-version: 6.0b20

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




.
_______________________________________________
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: Paul Skinner <email@hidden>
References: 
 >Script determines its path on run (From: Mátyás Ferenc Farkas <email@hidden>)

  • Prev by Date: Detect switch from AC to Battery
  • Next by Date: Non-printing characters
  • Previous by thread: Script determines its path on run
  • Next by thread: Re: Script determines its path on run
  • Index(es):
    • Date
    • Thread