Skip to main content
Participant
September 21, 2015
Question

Changing Path file in a script at first launch

  • September 21, 2015
  • 1 reply
  • 470 views

Hi everybody,

i've got a script that i need to send to other users on Macintsoh. In this script there is 5 paths to save files (same path but differents files names) and one path to import file.

All the saved files and the imported one are located in the same folder. My mistake is that if someone as another path (especially for the import) or is on a PC environment, the script will failed.

Is there a way to put in this script, another one that would set the default path for the files at the first launch (and never comes up again) ? Is it maybe preferable to make another script to set this path ?

I hope i'm clear (my native language isn't english, i do my best )... if no let me no, i'll try to precise my thoughts.

Thanks al ot for your help

Cédric

This topic has been closed for replies.

1 reply

c.pfaffenbichler
Community Expert
Community Expert
September 21, 2015

Personally I would store the Path/s in a txt-file (of a particular name and location) and have the Script check for it – if it is there use the Path/s, if it is not there present Selection dialog and save the Path/s in a txt-file.

Participant
September 21, 2015

Thanks for your response.. I'll try to do that (if i manage to !!)

c.pfaffenbichler
Community Expert
Community Expert
December 21, 2015

Were you successful in the task?