• 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: osascript - path to me
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Linked lists (was osascript - path to me)
  • Next by Date: Re: Jon's Commands X (d1)
  • Previous by thread: Re: Linked lists (was osascript - path to me)
  • Next by thread: Re: osascript - path to me
  • Index(es):
    • Date
    • Thread