Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: How to create GUI for a perl script on MAC?/Apple Script and Perl?

by karlgoethebier (Vicar)
on Jan 18, 2013 at 14:42 UTC ( #1014068=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    set theWindowTitle to "PerlMonks"
    set theOption to text returned of (display dialog "Enter a Source fold
    +er:" & return default answer "" with title theWindowTitle)
    set thePerlScript to quoted form of (POSIX path of ((choose file with 
    +prompt "Select a script:") as Unicode text))
    set theResult to do shell script thePerlScript & " -S " & theOption
    display dialog "Result: " & theResult with title theWindowTitle
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    my %options;
    GetOptions(\%options, "SourceFolder=s");
    print $options{SourceFolder};
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1014068]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (15)
As of 2015-07-31 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (282 votes), past polls