• 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: Name of file or folder of current script...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Name of file or folder of current script...


  • Subject: Re: Name of file or folder of current script...
  • From: "Steven D. Majewski" <email@hidden>
  • Date: Mon, 21 Jul 2003 12:29:51 -0400

On Monday, July 21, 2003, at 11:08 AM, David Crowe wrote:

Is there a way to obtain the file name of the script being current executed, or even its folder name?


"( path to me )" will give you the path of the applescript app, however, if
you run in from script editor, you'll get the path to script editor.

Try this from the editor, and then save it as an application an try it again:

display dialog (path to me) as string


In an applescript studio app, you can get the bundle's path or path of
resources folder. Even if you don't need a GUI, a studio app is a handy
way of bundling other resources ( data files, shell scripts, etc. ) with
an applescript.

-- Steve Majewski
_______________________________________________
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: Name of file or folder of current script...
      • From: Michael Terry <email@hidden>
References: 
 >Name of file or folder of current script... (From: David Crowe <email@hidden>)

  • Prev by Date: Re: getting bounds of terminal window
  • Next by Date: Re: Date - 1 day in Address Book
  • Previous by thread: Name of file or folder of current script...
  • Next by thread: Re: Name of file or folder of current script...
  • Index(es):
    • Date
    • Thread