Code Monkey home page Code Monkey logo

macos-desktop's Introduction

Set macOS Desktop Image

Jump to information on macOS Catalina 10.15

Jump to information on macOS Mojave 10.14


macOS Mojave 10.15

IMPORTANT: set-desktop-catalina.sh has been tested using macOS Catalina Beta [ Build 19A487l ]

Purpose

Set a user's Desktop image in macOS Catalina 10.15 from the command line. See Limitations

Background

An explanation of how Desktop images appear to be managed by macOS since Mojave (10.14) can be found at Setting the Desktop Image in macOS Mojave From the Command Line. While this article was written before the release of the Catalina Beta, the majority is still relevant to 10.15.

Usage

[bash] /path/to/set-desktop-catalina.sh <desktop image>

Examples

HEIF (.heic) images

Catalina Automatic

[bash] /path/to/set-desktop-catalina.sh catalina

Catalina Light (Still)

[bash] /path/to/set-desktop-catalina.sh light

Catalina Dark (Still)

[bash] /path/to/set-desktop-catalina.sh dark

Mojave Dynamic

[bash] /path/to/set-desktop-catalina.sh mojave

Mojave Light (Still)

[bash] /path/to/set-desktop-catalina.sh mojave-light

Mojave Dark (Still)

[bash] /path/to/set-desktop-catalina.sh mojave-dark

Solar Gradients

[bash] /path/to/set-desktop-catalina.sh solar

non-HEIF (.heic) images

High Sierra

[bash] /path/to/set-desktop-catalina.sh "/System/Library/Desktop Pictures/High Sierra.jpg"

Ink Cloud

[bash] /path/to/set-desktop-catalina.sh "/System/Library/Desktop Pictures/Ink Cloud.jpg"

Other

Default

[bash] /path/to/set-desktop-catalina.sh default

Error Messages

Not running macOS Catalina

ERROR: For use with macOS Catalina 10.15.x only.

No Desktop image passed on the command line

ERROR: No image was specified.

Supplied Desktop image is a file that doesn't exist

ERROR: '/path/to/desktop/image.jpg' doesn't exist.

Invalid option passed on the command line

ERROR: 'option' is not a valid option.

Attempt to reset a database other than desktoppicture.db to the default

ERROR: The 'default' option is only appropriate when the database is ~/Library/Application Support/Dock/desktoppicture.db

Possible dual-monitor environment detected

ERROR: This script should not be used in a dual-monitor environment.

Two or more Desktops (Spaces) detected

ERROR: This script should not be used when multiple Desktops (Spaces) are configured.

Limitations

Works only with a single Desktop (Space) in a single-display environment.

Not for use with multiple Desktops (Spaces) or in a dual-display environment.


macOS Mojave 10.14

Purpose

Set a user's Desktop image in macOS Mojave 10.14 from the command line. See Limitations

Background

An explanation for why this script does what it does can be found at Setting the Desktop Image in macOS Mojave From the Command Line

Usage

[bash] /path/to/set-desktop-mojave.sh <desktop image>

Examples

HEIF (.heic) images

Mojave Dynamic

[bash] /path/to/set-desktop-mojave.sh mojave

Mojave Light (Still)

[bash] /path/to/set-desktop-mojave.sh light

Mojave Dark (Still)

[bash] /path/to/set-desktop-mojave.sh dark

Solar Gradients

[bash] /path/to/set-desktop-mojave.sh solar

non-HEIF (.heic) images

High Sierra

[bash] /path/to/set-desktop-mojave.sh "/Library/Desktop Pictures/High Sierra.jpg"

Ink Cloud

[bash] /path/to/set-desktop-mojave.sh "/Library/Desktop Pictures/Ink Cloud.jpg"

Other

Default

[bash] /path/to/set-desktop-mojave.sh default

Error Messages

Not running macOS Mojave

ERROR: For use with macOS Mojave 10.14.x only.

No Desktop image passed on the command line

ERROR: No image was specified.

Supplied Desktop image is a file that doesn't exist

ERROR: '/path/to/desktop/image.jpg' doesn't exist.

Invalid option passed on the command line

ERROR: 'option' is not a valid option.

Attempt to reset a database other than desktoppicture.db to the default

ERROR: The 'default' option is only appropriate when the database is ~/Library/Application Support/Dock/desktoppicture.db

Possible dual-monitor environment detected

ERROR: This script should not be used in a dual-monitor environment.

Two or more Desktops (Spaces) detected

ERROR: This script should not be used when multiple Desktops (Spaces) are configured.

Limitations

Works only with a single Desktop (Space) in a single-display environment.

Not for use with multiple Desktops (Spaces) or in a dual-display environment.

macos-desktop's People

Contributors

tech-otaku avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.