Script Center 1.0 For Macos



Py2/py3 script that can download macOS components direct from Apple. Can also now build Internet Recovery USB installers from Windows using dd and 7zip. Thanks to: FoxletFox for FetchMacOS and outlining the URL setup; munki for his macadmin-scripts; timsutton for brigadier; wolfmannight for manOSDownloaderrc off which BuildmacOSInstallApp. If you want to use the script as-is, with no editing: 1. Create a 'Management' folder in /Library. Copy and paste the script into a plain text TextEdit document. Save the script as 'initswupdater.sh' in the /Library/Management folder. Do 'chmod a+x initswupdater.sh' in Terminal to make it executable. Here is the scenario: You manage a Windows Server 2008 Active Directory domain that includes both Windows 7- and Mac OS X-based client computers. Your Active Directory login scripts connect your Windows users to various corporate file shares and print queues. However, you need to make these resources available to your Mac OS X clients as well. The Missing Package Manager for macOS (or Linux). It’s all Git and Ruby underneath, so hack away with the knowledge that you can easily revert your modifications and merge upstream updates.

Basically, a Mac application has a .app extension, but it’s not really a file — it’s a package. You can view the application’s contents by navigating to it in the Finder, right-clicking it and then choosing “Show Package Contents”.

The internal folder structure may vary between apps, but you can be sure that every Mac app will have a Contents folder with a MacOS subfolder in it. Inside the MacOS directory, there’s an extension-less file with the exact same name as the app itself. This file can be anything really, but in its simplest form it’s a shell script. As it turns out, this folder/file structure is all it takes to create a functional app!

Enter appify

After this discovery, Thomas Aylott came up with a clever “appify” script that allows you to easily create Mac apps from shell scripts. The code looks like this:

Script Center 1.0 For Macos

Installing and using appify is pretty straightforward if you’re used to working with UNIX. (I’m not, so I had to figure this out.) Here’s how to install it:

  1. Save the script to a directory in your PATH and name it appify (no extension). I chose to put it in /usr/local/bin, which requires root privileges.
  2. Fire up Terminal.app and enter sudo chmod +x /usr/local/bin/appify to make appify executable without root privileges.

After that, you can create apps based on any shell script simply by launching Terminal.app and entering something like this:

Obviously, this would create a stand-alone application named Your App Name.app that executes the your-shell-script.sh script.

After that, you can very easily add a custom icon to the app if you want to.

Adding a custom app icon

  1. Create an .icns file or a 512×512 PNG image with the icon you want, and copy it to the clipboard (⌘ + C). (Alternatively, copy it from an existing app as described in steps 2 and 3.)
  2. Right-click the .app file of which you want to change the icon and select “Get Info” (or select the file and press ⌘ + I).
  3. Select the app icon in the top left corner by clicking it once. It will get a subtle blue outline if you did it right.
  4. Now hit ⌘ + V (paste) to overwrite the default icon with the new one.

Note that this will work for any file or folder, not just .app files.

Examples

Chrome/Chromium bootstrappers

I like to run Chrome/Chromium with some command-line switches or flags enabled. On Windows, you can create a shortcut and set the parameters you want in its properties; on a Mac, you’ll need to launch it from the command line every time. Well, not anymore :)

Sierra

The & at the end is not a typo; it is there to make sure Chromium is launched in a separate thread. Without the &, Chromium would exit as soon as you quit Terminal.app.

Launch a local web server from a directory

Say you’re working on a project and you want to debug it from a web server. The following shell script will use Python to launch a local web server from a specific directory and open the index page in your default browser of choice. After appifying it, you won’t even need to open the terminal for it anymore.

More?

Needless to say, the possibilities are endless. Just to give another example, you could very easily create an app that minifies all JavaScript and CSS files in a specific folder. Got any nice ideas? Let me know by leaving a comment!

Affrus 1.0 is an integrated Perl editing and debugging environment for Mac OS X that wraps Perl in a standard, familiar, and intuitive user interface. It's the perfect center for all your Perl development needs on Mac OS X. Whether you're just beginning to experiment with Perl and want an easy way to get your feet wet, or you're a Perl expert wishing to understand and hack into a vast body of existing code, Affrus is for you.


(click to enlarge)

Editing

Script Center 1.0 For Macos

The Affrus editor is tailored to the Perl language. It provides syntax coloring, identifier indexing, and a host of other editing tools to make Perl development faster. Affrus integrates with Bare Bones Software's BBEdit and TextWranger for those who prefer to edit in these tools.
Debugging

Affrus presents a full-featured graphical debugger tuned to the needs of Perl programmers. The debugger features step-wise execution, breakpoints, tracing, and expression evaluation as well as stack frame tracing with full access to locally scoped (my) variables. The debugger also displays all Perl registers and variables from any Package.
Command Line Integration

Script Center 1.0 For Macos Sierra

Affrus provides a command line tool that allows all of Affrus's debugging capabilities to be invoked from Mac OS X's command line. For instance, you can pipe stdin to the command line tool to debug with live data.