Hi everybody,
Could someone help me get started…
I have 2 text files: Location1.txt and location2.txt
Location1.txt contains:
Loc1Printer1, Printer1 IP, Printer1 PPD, Printer1 Info
Loc1Printer2, Printer2 IP, Printer2 PPD, Printer2 Info
Loc1Printer3, Printer3 IP, Printer3 PPD, Printer3 Info
Location2.txt contains:
Loc2Printer1, Printer1 IP, Printer1 PPD, Printer1 Info
Loc2Printer2, Printer2 IP, Printer2 PPD, Printer2 Info
Loc2Printer3, Printer3 IP, Printer3 PPD, Printer3 Info
And this is what I would like to do:
I would like to create a applescript that launces a window where the user can click on to bottums:
Location1 Location2
If the user clicks on Location1 a dropdown menu is filled with the info from Location1.txt
like this:
Loc1Printer1, Printer1 Info
Loc1Printer2, Printer2 Info
If the user clicks on the other buttom Location2 the dropdown is filled with
Loc2Printer1, Printer1 Info
Loc2Printer2, Printer2 Info
When then the user clicks on one if the items in the dropdown list - example:
Loc2Printer1, Printer1 Info
the full line in the right text file is read and given as parameters to a nother script:
Like this:
User clicks on:
Loc2Printer1, Printer1 Info
Following info is is given as paramenters to a nother script:
Loc1Printer1, Printer1 IP, Printer1 PPD, Printer1 Info
Does this make sense to anyone…?
I need it to make it more simple for the users to create there printers.
Any imput would be appriciated…
Thanks
Thomas