• 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: Timothy Bates <email@hidden>
  • Date: Sat, 18 May 2002 13:42:01 +1000
  • .mxoez?+: O?W^h1]g}IB\WO2A=6#`2^rL?jAu,r8EcKz@UG.r.7[$&Ym;j8^Wp;/KAlcda MO/$} $"[ c?\#d@cuN
  • 9+kli1>@: KaeEcbn$EIG)tY@^[7y`lyrI<4S(cnqzmTD&4<tTkuNR(4dweN}SUlDX/X^c>"

>> On Saturday, May 18, 2002, at 01:58 AM, Christopher Nebel wrote:
> A peculiarity of "path to me" is that it returns the path to the
> executing application, *not* the script being executed. The only way to
> get "path to me" to return the path to the script is to either make sure
> they're the same thing (i.e., make it an applet), or make the script
> runner handle "path to me" specially. (I think Smile does this; I'm not
> sure about Script Debugger.)
SD does this (it allows a choice actually)

> The meta-question here is "why does your script need to know where it
> is?" The typical answer to this is "so it can locate some related
> resources it needs", which leads to the counter-question "why aren't you
> using AppleScript Studio to create an application bundle?"

What about the 99.5% of AppleScript users who are simply attempting to write
scripts to get their work done and have no way to find related resources?

They are not using AppleScript Studio because it

A. Doesn't run on 80% of their client desktops
B. Requires a developer package
C. Is MUCH harder to use for a simple script
D. Gives them zero benefit over script editor.

It would be so simple for Script Editor simply to provide what is
universally requested: consistency in interpreting path to me, so that the
path to the script is returned whether the script is run as an applet or
inside script debugger.

There are no other (reliable and simple) ways for a script to find its
resources. It is a basic need that should be met and for which thousands of
users would be greatfull.

Tim
_______________________________________________
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: osascript - path to me
      • From: Christopher Nebel <email@hidden>
References: 
 >Re: osascript - path to me (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: alias as string = as Unicode text?
  • Next by Date: [OS X] Toolbar scripts
  • Previous by thread: Re: osascript - path to me
  • Next by thread: Re: osascript - path to me
  • Index(es):
    • Date
    • Thread