• 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: The script running finding a path to itself
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The script running finding a path to itself


  • Subject: Re: The script running finding a path to itself
  • From: kai <email@hidden>
  • Date: Thu, 17 Nov 2005 02:01:47 +0000


On 17 Nov 2005, at 01:41, Brett Conlon wrote:

I had a play with the following code but it only returns the Script editor app (which is me... not the script). Is there another reference for "me" to mean the script running?

set ScriptPath to alias (path to me as text)

When you save the script as an application, 'path to me' will return the script application as an alias.


So, if you want an alias, leave it as 'path to me'.

If you want a text path, I'd suggest you use 'path to me as Unicode text' (it's a bit safer than plain text for this purpose).

---
kai


_______________________________________________ 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
  • Follow-Ups:
    • Re: The script running finding a path to itself
      • From: Brett Conlon <email@hidden>
References: 
 >The script running finding a path to itself (From: Brett Conlon <email@hidden>)

  • Prev by Date: Re: Using a prompt value from another handler
  • Next by Date: Re: The script running finding a path to itself
  • Previous by thread: Re: The script running finding a path to itself
  • Next by thread: Re: The script running finding a path to itself
  • Index(es):
    • Date
    • Thread