• 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: Get Name of Current Script?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Get Name of Current Script?


  • Subject: Re: Get Name of Current Script?
  • From: Johnny AppleScript <email@hidden>
  • Date: Fri, 01 Oct 2004 03:22:37 -0600

Hi Stevan,

I think you misunderstood; thanks for the effort, though.

What I'm after is the path or name of a running script (~:Desktop:My Great
Script.scpt) when run from an application like iTunes
(~:Library:iTunes:Scripts:My Great Script.scpt); your example, utilizing the
already known 'path to me', as I referred to in my original question, when
run as a script from iTunes returns the path to iTunes (Macintosh
HD:Applications:iTunes.app) as the parent AS engine, as Script Editor does
when it runs the same.

Smile does what I want (sort of) but I don't have the luxury of using Smile
for this project.

Thanks again. -- JA

On 04/09/30 11:25 PM, "Reese, Stevan" <email@hidden> wrote:

> Running from the editor, log follows
>
> tell application "Finder"
>   set x to path to me
>   set y to name of file x as text
>   display dialog (x as text) & return & y
> end tell
>

>> I seem to remember this is possible with Smile, but is there a vanilla way
>> to get the name, and better, the path of a running script (not applet)
>> executed from a script menu from an app like iTunes?
>>
>> Something like (path to me) which returns the parent AS engine, but instead
>> the path of the script?


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: path to frontmost application: bug in AS 1.9.3?
  • Next by Date: Volume status
  • Previous by thread: Re: Get Name of Current Script?
  • Next by thread: Re: Get Name of Current Script?
  • Index(es):
    • Date
    • Thread