How To Zip A Logic File

broken image


Lesson 3: Working with Zip Files

/en/techsavvy/finding-your-downloads/content/

What is a zip file?

A zip file

A zip file is a way of grouping,or archiving, multiple files so they act like one file. For example, let's say you want to email a folder of Word documents to someone. You could attach each file individually, but it would take a long time—especially if there are a lot of documents. A better solution would be to put all of the files into a zip file, and then attach the zip file to your email.

Another advantage of zip files is that they are compressed, which means the total file size is smaller. If you're emailing a zip file to someone or posting it to the Web, it takes less time to upload—and your recipients will also be able to download it more quickly.

Some file formats, like MP3s and JPEG images, are already compressed. You can still zip these types of files, but the file size may not get much smaller.

Logic Pro 9 1.zip download at 2shared. Click on compressed file Logic Pro 9 1.zip to start downloading. 2shared - Online file upload - unlimited free web space. File sharing network. File upload progressor. 17425632 compressed files available. Typing a new name for the zip file. In macOS, once you've created a zip file you cannot add more files to it. If you need to add files, you will need to create a new zip file that contains all of the files you want. Adding a password to your zip file. Some people prefer to use zip file programs such as 7-Zip. Unpack a ZIP file Knowing how to zip a file is only half the battle; you also need to know how to unzip it. Windows 10 zips files using lossless compression algorithms that compress files while. The accessibility of Logic Pro, due to its low cost and App Store presence, has created a fast-growing user base. Studios that use Pro Tools or other digital audio workstations (DAWs) often have Logic Pro installed, as well. But to make collaborating simple and flexible, you can export all your tracks as audio files. Close the project and in the Finder navigate to the Project folder. Logic by default saves all associated audio files and backups (and samples if you want) in the project folder. Select the Project folder and choose: File Compress 'name of folder' A new compressed (.zip) file will be created of the contents of that folder.

Creating zip files

Whether you're using Windows or macOS, you don't need additional software to create and open zip files. That's because the basic zip file features are built into the operating system.

To create a zip file in Windows:

  1. Select the files you want to add to the zip file.

    Selecting files

  2. Right-click one of the files. A menu will appear.Right-clicking a file
  3. In the menu, click Send to and select Compressed (zipped) folder.Creating a zip file
  4. A zip file will appear. If you want, you can type a new name for the zip file.

    Typing a new name for the zip file

In Windows, once you've created a zip file you can then add more files to it by dragging them onto the zip file's icon.

To create a zip file in macOS:

  1. Select the files you want to add to the zip file.

    Selecting files

  2. Right-click one of the files. If right-clicking is not enabled, you can hold the Control key and then click. A menu will appear.

    Right-clicking a file

  3. In the menu, click Compress 12 Items (the number will vary depending on how many files you have selected).

    Compressing files

  4. A zip file will appear. By default, the file name will be Archive.zip.

    The new zip file

  5. If you want, you can type a new name for the zip file.

    Typing a new name for the zip file

In macOS, once you've created a zip file you cannot add more files to it. If you need to add files, you will need to create a new zip file that contains all of the files you want.

Adding a password to your zip file

Some people prefer to use zip file programs such as 7-Zip, PeaZip, and StuffIt. These programs have additional features, like password protection. If you add a password to your zip file, it's important to tell recipients what the password is so they can open it.

Creating a password with PeaZip

Opening zip files

To open a zip file in Windows:

Windows treats zip files just like folders. You can open a zip file, move files in and out of it, and open individual files just like you would if they were in a folder.

  1. Double-click the zip file.
  2. The zip file will open. You can now double-click any file to open it.

    Accessing the contents of a zip file

Because Windows makes it easy to work with zip files, there's generally no need to unzip them. However, if you would prefer to unzip them you can simply right-click the zip file's icon and select Extract All.

To open a zip file in macOS:

Opening a zip file in macOS is slightly different from Windows. Instead of opening the zip file directly, it will unzip the files and place them in a new folder. You can then open the folder to access individual files.

  1. Double-click the zip file.
    Double-clicking a zip file
  2. A folder will be created with the same name as the zip file. You can double-click the folder to open it.
  3. You can now double-click any file to open it.

/en/techsavvy/tech-lifehack-vines/content/

I published a video that explains how to UnZip files without any code by using Logic Apps. However, that solution didn't work for bigger files or different archive type. This post is to explain how you can use the Azure Function to cover those situations. This first iteration supports 'Zip' files; all the code is available in my GitHub.

Prerequisites

How To Zip A Logic File

To create the Azure Function, I will use the excellent Azure Function extension of Visual Studio Code. You don't 'need' it. However, it makes thing very easy.
You can easily install the extension from Inside Visual Studio Code by clicking on the extension button in the left menu. You will also need to install the Azure Function Core Tools

Creating the Function


Once the extension installed, you will find a new button in the left menu. That opens a new section with four new option: Create New Project, Create Function, Deploy to Function App, and Refresh.

Click on the first option Create New Project. Select a local folder and a language; for this demo, I will use C#. This will create a few files and folder. Now let's create our Function. From the extension menu, select the second option Create Function. Create a Blob Trigger named UnzipThis into the folder we just created, and select (or create) Resource Group, Storage Account, and location in your subscription. After a few seconds, another question will pop asking the name of the container that our blob trigger monitors. For this demo, input-files is used.
Once the function is created you will see this warning message.
What that means is that to be able to debug locally we will need to set the setting AzureWebJobsStorage to UseDevelopmentStorage=true

How To Zip A Logic File Reader

in the local.settings.json file. It will look like this.
Open the file UnzipThis.cs; this is our function. On the first line of the function, you can see that the Blob trigger is defined.
The binding is attached to the container named input-files, from the storage account reachable by the connection 'cloud5mins_storage'. The real connectionString is in the local.settings.json file.
Now, let's put the code we need for our demo:
UPDATED: Thanks to Stefano Tedeschi who found a bug and suggested a fix.

The source of our compressed file is defined in the trigger. To define the destination destinationStorage and destinationContainer are used. Their value are saved into local.settings.json. Then because this function only supports .zip file a little validation was required.
Next, we create an archive instance using the new System.IO.Compression library. We then create references to the storage account, blob, and container. It not possible to used second binding here because for one archive file you have a variable number of potential extracted files. The bindings are static; therefore we need to use the regular storage API.
Then for every file (aka entry) in the archive the code upload it to the destination storage.

Deploying


To deploy the function, from the Azure Function extension click on the third option: Deploy to Function App. Select your subscription and Function App name.
Now we need to configure our settings in Azure. By default, the local.setting are NOT used. Once again the extension is handy.

Under the subscription expand the freshly deployed Function App AzUnzipEverything, and right-click on Application Settings. Use Add New Setting to create cloud5mins_storage, destinationStorage and destinationContainer.
The function is now deployed and the settings are set, now we only need to create the blob storage containers, and we will be able to test the function. You can easily do that directly from the Azure portal (portal.azure.com).
You are now ready to upload a file into the input-files container.

Let's Code Together


This first iteration only supports 'Zip' files. All the code is available on GitHub. Feel free to use it. If you would like to see or add support for other archive types join me on GitHub!.

How To Email A Zip File

In a video, please!


I also have a video of this post if you prefer.
I also have an extended version where I introduce more the Visual Studio Extension to work with Azure Function. And explain more details about the Azure Function V2.




broken image