Re: Get Name of Current Script?
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