<?xml version="1.0" encoding="windows-1252"?>
<node id="1013934" title="How to create GUI for a perl script on MAC?/Apple Script and Perl?" created="2013-01-17 20:25:51" updated="2013-01-17 20:25:51">
<type id="115">
perlquestion</type>
<author id="969718">
hary536</author>
<data>
<field name="doctext">
Hello, 
&lt;p&gt;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. &lt;/p&gt;

&lt;p&gt;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. &lt;/p&gt;

&lt;p&gt;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. &lt;/p&gt;

&lt;p&gt;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. &lt;/p&gt;

&lt;p&gt; Any help is appreciated. Thanks.  &lt;/p&gt;

&lt;p&gt;Example of how my script accepts command-line arguments:&lt;/p&gt;
&lt;p&gt;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 &amp; 1 are switches for different things in my script. &lt;/p&gt;

</field>
</data>
</node>
