Skip to content

Instantly share code, notes, and snippets.

View jlehikoinen's full-sized avatar
🍏
Digesting WWDC23

Janne Lehikoinen jlehikoinen

🍏
Digesting WWDC23
View GitHub Profile
@jlehikoinen
jlehikoinen / set_default_application_for_filetype.py
Last active June 30, 2017 03:56
Set default application for a file type in macOS
#!/usr/bin/python
"""
set_default_application_for_filetype.py
Description:
Set default application for a file type in macOS
"""
@jlehikoinen
jlehikoinen / set_outlook_as_default_application.py
Last active August 17, 2017 06:43
Set MS Outlook as default email application in macOS
#!/usr/bin/python
"""
set_outlook_as_default_application.py
Description:
Set Outlook as a default application for email, calendar and contacts
"""
@jlehikoinen
jlehikoinen / gist:28ec2336f82110829868931543b4ed95
Last active March 25, 2025 09:50
Remove signature from Configuration Profile using Quick Action
# Automator > Quick Action
# Workflow receives current "files or folders" in "Finder"
# Add "Run Shell Script" action
# Copy script below to "Run Shell Script" window
# Replace <text-editor-app> at row 36 with your preferred text editor app
# Save quick action as: "Remove signature from Profile & open in <app>"
# Quick Actions live in: ~/Library/Services
# Target folder
@jlehikoinen
jlehikoinen / create_xcode_icns.sh
Created August 29, 2019 06:33
Create Xcode iconset for macOS app from a 1024x1024 sized png file
#!/bin/sh
# ================================================
# create_xcode_icns.sh
#
# Create Xcode iconset for macOS app from a 1024x1024 sized png file
#
# Drag png file to Terminal window to get the file path as a parameter for the script
# Iconset will be created to the same folder where the original icon is
# Import (drag&drop) icns file to Xcode
@jlehikoinen
jlehikoinen / gist:ec7bbf5d7a5696b3761df881fac4571f
Last active June 9, 2021 18:42
Codesign Configuration Profile
# Automator > Quick Action
# Workflow receives current "files or folders" in "Finder"
# Add "Run Shell Script" action
# Copy script below to "Run Shell Script" window
# Replace <codesigning certificate> at row 28 with your preferred certificate
# Save quick action as: "Sign Configuration Profile"
# Quick Actions live in: ~/Library/Services
# Receives files and folders
@jlehikoinen
jlehikoinen / gist:ce8858e328636c39a958bcf8b1a83395
Last active April 8, 2020 08:33
Codesign macOS Installer package
# Automator > Quick Action
# Workflow receives current "files or folders" in "Finder"
# Add "Run Shell Script" action
# Copy script below to "Run Shell Script" window
# Replace <codesigning certificate> at row 28 with your certificate information
# Save quick action as: "Sign Installer package"
# Quick Actions live in: ~/Library/Services
# Receives files and folders