Re: Path to current script file?
Re: Path to current script file?
- Subject: Re: Path to current script file?
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 21 Apr 2003 07:04:25 -0700
On 4/21/03 5:09 AM, "Jakob Peterhdnsel" <email@hidden> wrote:
>
Ok, I'm running some scripts via automated solutions (Like iChatStatus)
>
and would like to get the path the the current script file location.
>
>
If I do a 'path to me' I get the path to the host application running
>
the script. Is there a way to get the path to the script file instead?
>
>
Or should I just hard code the path the the default location?
>
(~/Library/Application Support/iChatStatus/)
You could be a bit more portable than that:
(path to application support from user domain as Unicode text) &
"iChatStatus:"
(colonic path) or
POSIX path of ((path to application support from user domain as Unicode
text) & "iChatStatus:")
(unix path)
>
>
If yes, could some AS Master refresh my memory on how to convert the
>
UNIX path to a usable path for 'run script' ?
run script (POSIX file unixPath)
--
Paul Berkowitz
_______________________________________________
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.