Terminal command to change the wallpaper does not

I recently did a program that changed my desktop wallpaper according to the time of day.  He worked by entering a terminal command that looked like something like this:

osascript-e ' tell application "Finder" to the image of the desktop value "/ path/to/file.jpg" as a POSIX file '

It was working fine, until recently.  Now when I enter the command to define 'fichier.jpg', it works, and defines it as my desktop background as it is supposed to, but when I replace it with a new image of the same name and path, the command affects my wallpaper the original image of the same name.  When I went to change my wallpaper in system preferences, it showed in my new defined image preview area, even if it wasn't.  I'm doing something wrong or is there a problem with my Mac?

osascript-e ' tell application "Finder" to set the image of the Office of POSIX file "/ path/to/image.jpg" '

On OS X 10.11.6 and by operating in the Terminal, the foregoing has changed the image of the office immediately whenever it is run with a new image.

Tags: Mac OS & System Software

Similar Questions

  • BlackBerry Smartphones ALT/O command to display the messages does not work on 7.10; Anyone know another shortcut?

    ALT/O command to display the messages does not work on 7.10; Anyone know another shortcut?  I know that I can get all messages sent via Options, but too heavy to do it and then cancel it.

    do an advanced search using the options. Once you are satisfied with it, you can save it and assign it to Alt - O.
    If you do this, remember to remove any other shortcut search which may exist.

  • My wireless mouse just stopped working. I can still use the mousepad however. I changed the batteries does not. Then I tried another mouse wireless, and it didn't work either.

    My wireless mouse just stopped working.  I can still use the mousepad however.  I changed the batteries does not.  Then I tried another mouse wireless, and it didn't work either.  What can I do next?

    Buy an inexpensive wired USB mouse for less than $5 and see if it works.  As far as I'm concerned wireless mice are more trouble than they are worth.  YMMV :-)

    Good luck.

  • I'm not able to update my credit card. Change the payment does not appear next to my plan for

    I'm not able to update my credit card. Change the payment does not appear next to my plan for

    A few changes/Verify account https://forums.adobe.com/thread/1465499 links that can help

    -Credit card https://helpx.adobe.com/x-productkb/policy-pricing/membership-subscription-troubleshooting-cr creative - cloud.html

  • Windows 8 'PC to change the settings' does not

    Hello

    PC settings in my windows 8 does not respond. When I click on the "Change PC settings" option, I just came to the start page. Some of the software also do not react. I tried troubleshooting that was of no use. It adds that the system restore option is also insensitive. Any suggestions on how to fix this would be really useful.

    Thank you

    When I click on the "Change PC settings" option, I just came to the start page.

    There is at least a related thread is not displayed here...

    A here I remembering but not much help

    http://social.technet.Microsoft.com/forums/en-us/W8ITProPreRel/thread/254b2fb9-BAC0-42a7-A621-43571fd3a7f0/

    Do you use a third-party AV?   If so, try uninstalling and using only Windows Defender (for a trial).

    (Microsoft search for)
    metro app Flash start screen avast
    )

    Otherwise, using ProcMon to see what your symptom means would be my best guess to go forward.

    HTH

    Robert Aldwinckle
    ---

  • Change the colors does not work at all

    Hello

    I recently posted this edition colors were funny and was an auto assign to the existing colors.

    Now, change the colors doesn't do ANYTHING. I select a color to be changed... change the color in the color Edition dialogue... nothing.

    Any suggestions on a workaround solution that does not take forever?

    Redefine the colors down to the left is checked?

  • Changing the text does not update the name of the layer.

    With Win7 and CS5.

    I just noticed something with my text in CS5 that differs from the CS3 and also for me, a step back.

    I made a text layer with words.  The words appeared as the layer name in the layers palate (I typed 'TEXT' on the screen and the text layer is named text for example).

    Then I double-clicked on the text icon and this field selected the word on the screen.  Then, I changed the word 'TEXT' for some other say word "WORD".  However, this new Word I typed in was not carried over to the name of the layer so the ancient name of the layer remained.

    In CS3, the name of the layer is updaed when the words on the screen are changed.

    I really want the new text update on the name of the layer.  Is it possible to fix this or is it just something in my system.

    Thanks in advance.

    JohnRich

    I just tested with Photoshop CS5 and CS6, and layer update for me names when I edited the text.  I have not configured something specific that causes.

    -Christmas

  • How to extend my screen? changing the resolution does not work?

    I can't get my screen to fit my monitor, tried everything, can someone help?

    Hello

    If using a desktop computer search an automatic reset on the monitor button

    or try these methods

    go to your graphics card manufacturers site or computer and are looking for the driver download section

    Search your computer or graphics card model number based on what you have and download and install the latest graphics drivers for vista

    then try to make the screen of solution of problems

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-screen-resolution

    Change the screen resolution

    __________________________________________________________

    or try a restore of the system before this happened

    http://www.windowsvistauserguide.com/system_restore.htm

    If necessary do in safe mode

    Windows Vista

    Using the F8 method:

    1. Restart your computer.
    2. When the computer starts, you will see your computer hardware are listed. When you see this information begins to tap theF8 key repeatedly until you are presented with theBoot Options Advanced Windows Vista.
    3. Select the Safe Mode option with the arrow keys.
    4. Then press enter on your keyboard to start mode without failure of Vista.
    5. To start Windows, you'll be a typical logon screen. Connect to your computer and Vista goes into safe mode.
    6. Do whatever tasks you need and when you are done, reboot to return to normal mode.
  • change the audio does not not in display:

    Captivate 4.0 trial version

    I have a client who is looking to buy captivate.  I told them to download a trial version for 30 days, and I walk them through it with one of their courses.  However, the two parties can not get audio to play within the edit view?  It makes no sense at all.  Any advice?

    Thank you!

    Hello

    It is possible that the edit view has become silent in the timeline panel.

    Beyond that, you may also need to make sure that the latest patch has been applied as well as following the steps described in the two posts below the link.

    An extension number

    Position of number two

    I hope this was helpful... Rick

    Useful and practical links

    Captivate wish form/Bug report form

    Certified Adobe Captivate training

    SorcerStone blog

    Captivate eBooks

  • Impossible to change the wallpaper, the location of the image does not display images.

    Original title: photo location not display images

    I'm trying to access my pictures folder and select a background for my office. But when I search for the location of the image and select the folder of the screen does not display images, even if the pictures are present in the folder. The screen shows only 'solid colors.
    I moved to the location of my pictures, sounds and video to another folder. Then, the default folders are different.
    In Explorer when I just click on the photos forlder ther is a location tab saying my it's the default folder.
    One last thing.
    If I go to explore and navigate to the folder my pictures, right click on a picture and select 'Set as wallpaper', then it displays the content and the folder.

    Any ideas?
    James

    I got it working again.
    And that's a good reason to not mess with the registry.
    I have used a tweak registry to hide the libraries in the Explorer navigation pane. Once I've restored it Windows seems to have found the files for my photos. I then re - hid libraries and everything seems to work ok.

    James

  • I can't tp perform actions on email or some Web sites because the pointer does not change from a helping hand on all orders at the top of a page - any more down works fine

    In Hotmail, for example, I can open any message in the Inbox except the top one, but then I am unable to answer or to take further action because the symbol of the pointer does not change from a helping hand and clicking on has no effect.

    If I try to open the top message from the page by clicking on the command "Open" is gray.

    If I open the type of web page that has a number of menu items at the top of the page, I can't open anything either for the same reason - something more to the bottom of a page is fine. The type of Web site with menus on the sides can be used for all items except the top menu!

    Help!

    Concerning

    Brian

    The extension of the Yahoo! toolbar and the extension of Babylon have been reported because of this problem. Disable or uninstall the modules.

       * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    
  • App, opening a file via windows shell commands: "a device attached to the system does not work.

    Hello!

    I hope that someone here will be able to throw some lights on my question, if I post this is the wrong place please let me know because I was directed here (which forum? ). OK, I support and develop custom applications. An older application especially written in Delphi allows users to attached documents (pdf, jpg, txt, etc.) to the records of equipment in a data base. Later users can view these records of equipment and press a button to display the document.

    When the user presses the button to view the document, the application uses the folder variable to save the document to the temporary path and then asks windows via a shell command to open the file. The appeal of Delphi for windows used is the following:

    ShellExecute (GetDesktopWindow, 'open', PChar (TempFile), ",", SW_SHOWNORMAL);

    Normally this process works very well, we have had no problems so far. On a single computer (windows xp pro with Service Pack 3) belonging to a client, instead of opening the file, windows returns the system 31 error and the message ""a device attached to the system is not functioning. ". is displayed.

    * If I navigate to the location where the file is stored on the disk and try to open it, software adobe reader opens the file correctly.

    * I found some suggestions that the file extension is associated properly. PDF associated with Notepad, I changed, and the application could ask windows to open the file very well. Open the file from the location on the work of disc as well. Change the file for adobe and the problem persisted.

    * I reinstalled adobe reader software, but also a previous version of adobe and the problem persisted.

    * The application doesn't have any problem asking other files opened, only those associated with adobe reader on this same machine. The problem does not exist on other machines.

    That about sums up the problem. Any suggestion would be appreciated.

    Thank you

    Louis

    It was determined that the version of adobe reader was at fault.

  • VMware Player tells me to 'host reserved RAM', but the option does not exist.  Is there a command for vmx to this file?

    I am running VMware Player on a host Ubuntu 14.04, Win 7 pro x 64 comments.  When I start the client OS VMWare gives me this warning

    Vmware Player Warning.png

    So I want to allow the use of the "reserved host RAM" option instead of playing with the pagefile, but setting told me to doesn't seem to exist in VMware Player

    vmware player mem settings.png

    Is there something I can add to the VMX file to enable this option?

    Porto Richardson wrote: this setting for VMware Player is found in the file config.ini to the player %allusersprofile%/VMware/VMware

    The OP said "I'm under VMware Player on a Ubuntu 14.04 host" so the file name and path you mentioned is not applicable.

    @LukeJS host on a Ubuntu (Linux) from the file name won't get the .ini extension and will be simply called the config and will be parked at/etc/vmware /.  So with the machine virtual shutdown is not suspended and VMware Player closed then a Terminal used the following command.

    sudo nano/etc/vmware/config

    Then add the following line.

    prefvmx.minVmMemPct = "100".

    It is essentially the same parameter that gets the value of the UI of VMware Workstation preferences for submission in response to the message that despite the instructions contained in the message does not exist in the VMware Player preferences user interface.

  • Bought the new computer windows 10, itunes has changed location of support for external hard drive. The music does not appear in itunes.

    BOUGHT NEW COMPUTER WINDOWS 10, CHANGED ITUNES MEDIA LOCATION FOR EXTERNAL HARD DRIVE. THE MUSIC DOES NOT APPEAR ON ITUNES.

    Changing the iTunes media folder location setting affects only where new additions to your library will be stored.  To use a disk external drive to store your library complete (and assuming that you have access to the original data of the library on an old computer) you must copy the iTunes folder, by default in C:\Users\username\Music, on the external drive - structure library and its records should be like this:

    The hold button SHIFT DOWN when you start iTunes and when you see this message:

    Click choose a library... then find and select the iTunes Library.itl in iTunes on your external drive folder.

    For more information, see user turingtest2 on make a library of portable split.  You must also acquire a 2nd external drive and allows create and maintain a backup your library.

  • Why an amplification of the RAM does not change the index performnance of windows vista?

    Why an amplification of the RAM does not change the index performnance of windows Vista?

    Hello

    I m not very well, but maybe you have more than 3 GB of RAM and Vista 32 bit.
    Usually the 32 bit OS is capable to manage and send only 3.2 GB.
    The more than 3.2 GB RAM will not operating system used and therefore would not increase the index
    In addition the laptop will be not really faster after upgrading RAM. You will notice better performance using applications at the same time, but this does not affect the index of Vista.
    But this is only my personal hypothesis.

    Welcome them

Maybe you are looking for

  • My Macbook has become too slow without reason

    Hello! My Macbook has become too slow without reason, I don't know what to do. I ran EtreCheck and found the above... PLS help me what to do? What's wrong? EtreCheck version: 3.0.2 (306) Report generated 2016-08-20 19:35:18 Download https://etrecheck

  • Satellite A500 - 17 X - is not satisfied with it

    My toshiba A500 - 17 X is the worst phone I've ever had!for 2 reasons: 1: http://forums.computers.toshiba-europe.com/forums/message.jspa?messageID=185832#1858322: I did a previous (using the world and access) assignment when my laptop froze and the b

  • PDM and time alignment - how?

    LV 2010.0 I am trying to figure files TDMS, including how to manage changes in configuration along the way. For example: I have install the config as TIME + channels A, B, C. I save some data. I then change the config on TIME + channels A, B, C, D I

  • Hardware requirements for MS SQL Server for about 100 concurrent users

    Can someone suggest the hardware configuration required for MS SQL Server for about 100 concurrent users? Microsoft page suggests 2 GHz CPU and 4 GB of RAM, but it does not mention the number of users. Wonder how many users affects the performance of

  • How can I remove it completely Panda security of my computer?

    I already uninstalled Panda and it is expired, but it ' always there... How can I remove it tottaly? original title: removal of panda