|Do you know where your variables are?|
How to create GUI for a perl script on MAC?/Apple Script and Perl?by hary536 (Novice)
|on Jan 18, 2013 at 01:25 UTC||Need Help??|
hary536 has asked for the
wisdom of the Perl Monks concerning the following question:
I have a perl script which accepts command line arguments like folder locations and some other yes/no switches. It is meant for MAC users.
I want to create some kind of simple GUI so that you can enter those command line arguments in the GUI instead of running the perl script from command line.
I came across Platypus, but seems, I can't pass multiple arguments using platypus. I don't know Objective-C or Cocoa. I know a bit of AppleScript.
I am wondering, is there a way to get user input through AppleScript and then pass that input as arguments to my perl script? I know, you can get user inputs through Apple Script, but don't know how to pass them as arguments to my perl script.
Any help is appreciated. Thanks.
Example of how my script accepts command-line arguments:
MyScript.pl -s PathToSoruceFolder -t PathtoDestinationFolder -c PathtoSettingsFolder -b Filenamestartswith -1 "YYYY/MM/DD HH:MM"(process files created after this time) -R 1 -W 1 -S 0 -E 1 Where 0 & 1 are switches for different things in my script.