Re: Name of file or folder of current script...
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.