Re: osascript - path to me
Re: osascript - path to me
- Subject: Re: osascript - path to me
- From: Arthur J Knapp <email@hidden>
- Date: Mon, 20 May 2002 09:55:24 -0400
>
Date: Mon, 20 May 2002 10:27:13 +1000
>
Subject: Re: osascript - path to me
>
From: Timothy Bates <email@hidden>
>
I thought of a similar solution (not overloading the path to me, but
>
intercepting the call inside a larger handler which defines the location of
>
resource and results folders for my application). I have tried detecting the
>
failed path to me and asking the user to locate the file, and I have tried
>
placing hard coding in. Both of these cause endless support calls when
>
something works wrong, or, worse, keeps on working, but giving a false path
>
(as happens with hard coded paths).
If someone happens to have Script Debugger 3, here is better way to
handle "path to me":
(* Script Debugger 3
*)
on path to keywordConstant
if (keywordConstant = me) then
try
return file spec of me --> SD 3 property
on error
return continue path to me
end try
else
return continue path to keywordConstant
end if
end path to
{ Arthur J. Knapp, of <
http://www.STELLARViSIONs.com>
<
mailto:email@hidden>
(*) Happy
( ) Sad
( ) Ambivalent
( ) Ubiquitous
}
_______________________________________________
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.