• 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: Path to current script file?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Path to current script file?


  • Subject: Re: Path to current script file?
  • From: Paul Berkowitz <email@hidden>
  • Date: Mon, 21 Apr 2003 07:04:25 -0700

On 4/21/03 5:09 AM, "Jakob Peterhdnsel" <email@hidden> wrote:

> Ok, I'm running some scripts via automated solutions (Like iChatStatus)
> and would like to get the path the the current script file location.
>
> If I do a 'path to me' I get the path to the host application running
> the script. Is there a way to get the path to the script file instead?
>
> Or should I just hard code the path the the default location?
> (~/Library/Application Support/iChatStatus/)

You could be a bit more portable than that:

(path to application support from user domain as Unicode text) &
"iChatStatus:"

(colonic path) or

POSIX path of ((path to application support from user domain as Unicode
text) & "iChatStatus:")

(unix path)
>
> If yes, could some AS Master refresh my memory on how to convert the
> UNIX path to a usable path for 'run script' ?

run script (POSIX file unixPath)

--
Paul Berkowitz
_______________________________________________
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.

References: 
 >Path to current script file? (From: Jakob Peterhänsel <email@hidden>)

  • Prev by Date: Re: Path to current script file?
  • Next by Date: Re: [Q] Automatic Finder Icon Placement
  • Previous by thread: Re: Path to current script file?
  • Next by thread: Inheritance dilemma
  • Index(es):
    • Date
    • Thread