Author Topic: How do you add scripts (***.js) in Mac OS?  (Read 3565 times)

Offline bpipes

  • Newcomer
  • Posts: 11
How do you add scripts (***.js) in Mac OS?
« on: 2011 May 29 14:26:25 »
I have downloaded a script, PreProcessPipeline.js, and would like do add it to Pixinsight, but have not been able to figure out how to do it.

Bruce Pipes

Offline Philip de Louraille

  • PixInsight Addict
  • ***
  • Posts: 289
Re: How do you add scripts (***.js) in Mac OS?
« Reply #1 on: 2011 May 29 15:07:27 »
Under the menu Scripts,  select Feature Scripts
Click on Add and locate your script. Press Done when the script has been added.
Philip de Louraille

Offline bpipes

  • Newcomer
  • Posts: 11
Re: How do you add scripts (***.js) in Mac OS?
« Reply #2 on: 2011 May 29 15:22:06 »
Philip,

I tried that, but, when I located the script, it was greyed out. Hmmmm????

Bruce

Offline Philip de Louraille

  • PixInsight Addict
  • ***
  • Posts: 289
Re: How do you add scripts (***.js) in Mac OS?
« Reply #3 on: 2011 May 29 16:00:32 »
I think I remember having the same problem a while back... It may have to do with where the script is currently located or if it is executable...
Have you tried to run the script (menu: Script | Execute...) within PI or Check Script File Syntax...

Or create a new directory. My added scripts are in the main Applications folder in a subfolder named Astronomy.
I'll try to remember how I solved my problem...
Philip de Louraille

Offline bpipes

  • Newcomer
  • Posts: 11
Re: How do you add scripts (***.js) in Mac OS?
« Reply #4 on: 2011 May 29 16:30:17 »
Philip,

Creating a new directory did it. I think what I was missing was that the add window that pops up is asking for a directory, not a ***.js. Many things in PI are a little different from the norm.

Thanks,
Bruce

Offline Philip de Louraille

  • PixInsight Addict
  • ***
  • Posts: 289
Re: How do you add scripts (***.js) in Mac OS?
« Reply #5 on: 2011 May 29 16:41:17 »
Ah yes... now that you mentioned it, I remember: PI wants a directory. Glad I was able to help.
Philip de Louraille