|more useful options|
How to write apps for macOS/OSX in Perl!by Anonymous Monk
|on Jun 14, 2018 at 06:25 UTC||Need Help??|
macOS/OSX comes with tools that make it super easy to write native GUI applications with Applescript and Perl! This example uses the cool and free Robtex API to validate Autonomous System Numbers for networks in the global BGP table. Applescript provides plenty of ways to collect and display data, handle errors, and can launch terminals and text editors or any app and automate the entire operating system GUI while Perl does pretty much anything else you can imagine.
Start : Applications -> Automator
We're going to create an application but Automator can also encapsulate Perl into a Service, Image Capture Plugin, Dictation Command, Folder Action, Calendar Alarm, Print Plugin or Workflow.
Now that Automator is open click the Library icon or select View -> Show Library.
Select: Actions -> Utilities -> Run AppleScript (double click it)
Replace the default code with this:
Save the application and double click its icon in finder. BEHOLD! Perl apps for macOS/OSX!!!
(Tips: In the Perl code avoid single quotes and be prepared to do some extra backslashing.)