![]() ![]() However, desktoppicture.db file is updated every time the actual display picture changes. It also seems that everything that works through AppleScript also reads that value. Sorry about that, since I have a single picture selected and don’t have “Change Picture” enabled, the current picture and what System Preferences shows is one in the same. Set my_desktop to (do shell script "/usr/local/bin/desktoppr") If you want to stick with AppleScript, here you go: tell application "System Events" If you don’t want it in the Services menu, create it as an Automator application instead and run the application to get the same output. To use it, go to any application menu > Services and click the name of the Quick Action, the full file path to the desktop picture (or pictures if you have more than one display) will appear in a dialog and you can click the Cancel or OK buttons to dismiss it (pressing the Esc or Return keys also works). It will save the result in ~/Library/Services/ as a.
0 Comments
Leave a Reply. |