Author Topic: Enumerate files in directory in PJSR?  (Read 4617 times)

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Enumerate files in directory in PJSR?
« on: 2012 November 29 11:21:07 »
Is it possible to enumerate the files in a directory in PJSR? I don't see anything that does this. I would like to be able to quickly write scripts with no UI that apply processes to files in a directory whose names match some pattern.
Thanks,
Mike

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: Enumerate files in directory in PJSR?
« Reply #1 on: 2012 November 29 11:22:22 »
There you go again asking for useful stuff :-)

There is no javascript library that does this like what we have in python, ruby, perl etc?
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: Enumerate files in directory in PJSR?
« Reply #2 on: 2012 November 29 11:50:31 »
I can hard code file names, or use an open file dialog, no big deal. PI team is working hard on useful stuff, this is just a very low priority thought.
Thanks,
Mike

Offline georg.viehoever

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2132
Re: Enumerate files in directory in PJSR?
« Reply #3 on: 2012 November 29 12:44:03 »
SearchDirectory on the Global object?
Georg (6 inch Newton, unmodified Canon EOS40D+80D, unguided EQ5 mount)

Offline mschuster

  • PTeam Member
  • PixInsight Jedi
  • *****
  • Posts: 1087
Re: Enumerate files in directory in PJSR?
« Reply #4 on: 2012 November 29 13:11:48 »
Thanks Georg! It works on Win with wildcard strings like "C:/path/*.fit"