Author Topic: Scripts in 1.52  (Read 3480 times)

Offline Jack Harvey

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 975
    • PegasusAstronomy.com & Starshadows.com
Scripts in 1.52
« on: 2009 June 09 14:12:06 »
I have lost all my Utility scripts in 1.52 on my Mac.  I get No such file messages.  I think I had a note on how to fix this but cannot find it:-((  Anybody know the answer?
Jack Harvey, PTeam Member
Team Leader, SSRO/PROMPT Imaging Team, CTIO

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: Scripts in 1.52
« Reply #1 on: 2009 June 09 14:40:19 »
Hi Jack,

On the Mac we have a problem: OS X doesn't make it easy to access the contents of an application bundle. In other words, you cannot select a folder inside the PixInsight.app application. This means that the Script > Feature Scripts menu option is mostly useless to regenerate the list of standard scripts.

I still have to think on a good way to overcome this problem. Probably the best way is a new console command, but I haven't implemented it yest. I'll think on this for version 1.5.3.

Right now you have two options:

- Reset the entire PixInsight configuration. Right-click the PixInsight.app file. Press the Ctrl key and hold it pressed. Select the Open option. In this way the PixInsight application runs in Uninstall mode. Warning: You'll lose all your personal settings and PI will forget all recently opened files and folders.

- Use the terminal. Don't panic: it is very easy and works flawlessly. Assuming that you have PixInsight.app on your /Applications folder:

* Open the Terminal application (you have it on /Applications)

* Type this command and press Enter:

Code: [Select]
cd /Applications/PixInsight.app/Contents/MacOS
* Do the same with this command:

Code: [Select]
./PixInsight --default-scripts
Now PixInsight opens and all of your scripts are there automagically ;) Exit PixInsight and then close the Terminal. That's all! OS X is UNIX. That's why it's so powerful!
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Jack Harvey

  • PTeam Member
  • PixInsight Padawan
  • ****
  • Posts: 975
    • PegasusAstronomy.com & Starshadows.com
Re: Scripts in 1.52
« Reply #2 on: 2009 June 09 14:49:48 »
Works as advertised using Terminal.
Jack Harvey, PTeam Member
Team Leader, SSRO/PROMPT Imaging Team, CTIO