Set value of screen saver to never won't save

So I wrote this script:
tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.desktopscreeneffect"
end tell
delay 1
tell application "System Events"
tell process "System Preferences"
tell slider 1 of group 1 of tab group 1 of window "Desktop & Screen Saver"
set value to 361
end tell
end tell
end tell
which works quite nicely to set the value of the screensaver in preferences to "never"
The problem is, when system prefs closes or moves on to another pane, and I reopen it, the screensaver has not been set to never, it is back where it was before!
So what am I doing wrong?
Please help!

The UI of System Preferences is geared to manual user input, so when you're writing a GUI script there is a penalty for using precise value adjustments like that. You'll have more success with the blunter user-like instruments, such as banging on the keyboard…
click here to open this script in your editor<pre style="font-family: 'Monaco', 'Courier New', Courier, monospace; overflow:auto; color: #222; background: #DDD; padding: 0.2em; font-size: 10px; width:400px">tell application "System Preferences"
activate
set current pane to pane "com.apple.preference.desktopscreeneffect"
tell current pane to reveal anchor "ScreenSaverPref"
end tell
delay 1
tell application "System Events" to tell front window of process "System Preferences"
tell slider 1 of group 1 of tab group 1
set value of attribute "AXFocused" to 1
end tell
repeat 7 times
key code 124 -- right arrow
end repeat
end tell</pre>Edit: this was meant to be a response to the OP, I clicked the wrong button. Good suggestion NS.

Similar Messages

  • PSE6 Mac OS - Save For Web won't save JPEG high res setting in Preset

    Why is it that, contrary to documentation, Save For Web won't remember that I always select JPEG High for every photo file I save? Each time, it comes up as "Custom" Low quality, and can't even remember that I want JPEG format. My reliable old copy of PSE 2 that I've used happily for six years was capable of remembering what I wanted out of Save For Web. There are always surprises with new Adobe versions, I just wish there were some good ones once in a while...

    I tried on my mac machine with PSE 6 and saved one file as PNG-24 and some settings. I saved the file.
    next time when i opened any other image and tried using save for web, the previous settings were remembered.
    So, i m not sure if the issue you facing is common to all.

  • Save for web won't save in CS5

    So, save for web worked perfectly when I installed CS5, until a couple of days ago, when I clicked the save-button in the save for web window and got this message: "Could not complete this operation. An unknown operating system error has occurred."
    It makes no sense and I've tried basically everything I can think of that could help:
    Restarting
    Deleting settings for save for web
    Reinstalling the whole CS5 package (and removing settings)
    Repairing disk permissions
    Cleaning up stuff with OnyX
    Shutting down all other applications and running photoshop alone
    None of those things did anything and I'm pretty much stuck. Any ideas?

    Ok, now it seems to work of some reason. I have no idea whatsoever as to why.
    Edit: Wait, it works on certain files, and on others it doesn't. It won't work if I create a blank file and try saving, but it worked on a specific file. Makes no sense.
    Edit2: and NOW it seems to work on all files. Damn, I'm confused.

  • Save image as won't save anything anywhere

    when I try to use "save image as" with Google Images nothing saves where I tell it to.
    The Library comes up but when I click on an item in the list nothing opens, "open containing folder " doesn't open either. I f I download a program same thing happens.
    I have the latest version of Firefox 23.0 and am using xp professional. I have reset Firefox with no improvement and have changed download folder location, still nothing saves.
    I have none of these problems using Internet Explorer.

    It is possible that anti-virus software is corrupting downloaded files or is interfering otherwise.
    Try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See:
    *http://kb.mozillazine.org/Unable_to_save_or_download_files
    *browser.download.manager.scanWhenDone

  • InDesign CC Won't Save File

    Running InDesign 9.1
    Mac 10.8.5
    I have been using InDesign CC just fine with no issues. I have one file that I have edited for at least a couple of months and have had no issues. All of a suddent today, it won't save. It has all the options to save, but never will actually save. A co-worker can open and save it with no issue, but now I can't. Any thoughts?

    It's a known issue that you can have problems saving an InDesign file if you've dragged and dropped from the Finder or from Adobe Bridge.  It's expected that there will be an update to fix this and other performance issues before too long.
    In the meantime, using File > Place instead of drag-and-drop.

  • QT won't save movies, exported jpegs won't open.

    I am running the latest version of QT pro on my PC, windows XP. When editing a movie clip, I can edit to my heart's content, but when I go to save it, QT won't save it. It acts like it saves, but it doesn't.
    Also, when I export a movie to picture, the resulting image is useless. Photohop can't open it. Windows Picture and Fax Viewer can't open it...nothing works. In Windows Picure and Fax viewer (for the jpeg), I get the error message, "No review available." In photoshop (for the jpeg), the error message is: "Could not complete your request because an unknown or invalid jpeg marker is found." When I try to open the pct file in Photoshop, it says," Could not complete your request beause the PICT file is too complex to open on this computer. Photoahop Windows supports raster PICT files only." I have a GIG of ram and the PICT file is only 65 KB. I have tried using various joeg settings, exporting as a PNG file... nothing works. What's up?
    I bought Quicktime speciically for these two functions, and neither one of them works. I have Quicktime on a mac at home and it works fine.
    Any help would be hugely appreciated!

    Looks like the update has wreaked havoc (who uses that expression nowadays, anyway?) on your PRAM settings. You can try and reset them:  http://support.apple.com/kb/ht1379

  • Elements 13 won't save .jpeg files

    I have NIK collection installed and used it to create 2 layers. Now the save as..,. won't save as anything but .psd files. Is there a fix or workaround for this.

    Actually, I have just done a test.
    With a 16bit/channel image I can't create layers but I can save it as a JPG. I think that PSE 13 automtically converts it to 8bit/channel. Also, if the 8bit/channel image has layers then the PSE 13 will flatten it when saving as a JPG.
    So, I haven't any idea why JPG can't be selected from the Save As dropdown list. It is defaulted to PSD but I can always change it.
    Brian

  • Livecycle crashes and won't save

    I am creating a form and Livecycle keeps crashing and then it tells me "Failed to save the file". While I am using Vista, I also installed it on my laptop which is using XP.
    I have 2 problems:
    1. when I am trying to change a text box name and try to save it, it won't save.
    2. after the program closes, the file is gone...no longer a 'valid file name' even though I have saved it many times.
    First, it started doing this some of the time. Now, it crashes just about everytime I try to edit my form. I have to keep copying my file using several different file names so I don't lose all my work. 
    I have tried to reinstall Adobe Pro but it does not solve the problem.  Any suggestions?
    The error report is:
    Product
    Adobe LiveCycle Designer ES
    Problem
    Stopped working
    Date
    5/8/2010 10:07 AM
    Status
    Report Sent
    Problem signature
    Problem Event Name: APPCRASH
    Application Name: FormDesigner.exe
    Application Version: 8.2.1.3144
    Application Timestamp: 48366c39
    Fault Module Name: StackHash_df91
    Fault Module Version: 0.0.0.0
    Fault Module Timestamp: 00000000
    Exception Code: c0000005
    Exception Offset: 0717f9ad
    OS Version: 6.0.6001.2.1.0.256.6
    Locale ID: 1033
    Additional Information 1: df91
    Additional Information 2: 18d6da8ec1105d7f86b02186c2bce42c
    Additional Information 3: 35c3
    Additional Information 4: ba339693e3de77e68c6d6397cfd4ad75
    Extra information about the problem
    Bucket ID: 1851568385

    Do you have Adobe Reader installed?  If you do, you'll need to uninstall Reader and Acrobat Pro.  Reboot and reinstall Acrobat Pro and check for updates. 
    Reader and Acrobat Pro are incompatible on the same PC/laptop.

  • Some Preferences not sticking ie screen saver jump back to random after setting a particular screen saver

    I set a specific screen saver in the preferences file, after a reboot, random savers box is always checked. Also when I move items to the side bar they stay there until a start-up after which they have disappeared.
    Thx  AL

    I think that it is something wrong with kernel and graphic drivers but i'm not able to solve it from the beginning of using of Arch by me.
    I'm not so sure this issue is software-related only because in my case it seems the laptop screen enters power-saving mode (10-min timeout) on its own without any events logged (as shown by dmesg) so my next thought was OK, I'm going to get rid of this issue disabling the screen power-saving timeout in the BIOS and set it to never power down or something like that and from then on managing power mode manually; ie: when I want to power down I will just use systemctl suspend/hibernate which work fine ... problem is: there are no related options in my BIOS for such timeout.
    The only timeouts I have are in /etc/systemd/logind.conf set to 30min (#IdleActionSec) (commented) by default so these are not in effect because the screens goes blank after 10m which is less than the (default) 30m in logind. Maybe setting loggind to 9m (un-commented) to catch the event before the machine-default one ?
    IdleActionSec=9min
    IdleAction=suspend
    Will check it and report back.

  • When I have finished working on an image in Photoshop and I hit the save button it goes instead to the "save as" screen. This never happened in previous Photoshop versions. When I get to Lightroom, I have a grey screen the says "File could not be found."

    When I have finished working on an image in Photoshop and I hit the "save" button, it goes instead to the "save as" screen. This never happened in previous Photoshop versions. When I get to Lightroom, I have a grey screen the says "File could not be found." I then have to go to "locate" to get the image. When I select the correct image, I get a message that it is not the same file name but I am eventually able to access the image. Needless to say this is having a negative impact on workflow!

    The problem with write permissions for the OneDrive folder only shows up in Lightroom 6's export dialogue, that's why it's to irritating. Lightroom 5.7.1 is not having that problem nor does the file explorer. The problem also exists on both of my machines. I will try to check for other problems with the OneDrive troubleshooter though: Running the OneDrive troubleshooter - Windows Help   

  • Options set to remember history, but Firefox won'e save

    Firefox won't save my browsing history even though the options privacy setting is set to remember history

    History and cookies can be removed or not recorded several ways;
    * 1) Running Firefox in Private Mode (nothing is recorded)
    * 2) Privacy settings<br>(Type '''about:preferences#privacy'''<enter> in the address bar.)
    * 3) Many disk cleaners and anti-virus type programs can remove data from browsers. Open their settings and have them leave the browsers alone.
    * 4) Mal-ware.
    Separate Issue;
    Your System Details shows;
    Installed Plug-ins
    Motive Management Plug-in for Mozilla Browsers
    Motive Plug-in for Mozilla Browsers
    Motive Plugin for Mozilla Browsers
    Are these the same thing?
    Having more than one version of a program may cause issues.

  • Still sleeping even after setting Energy Saver to Never

    I'm trying to use my 2.53 GHz (Late 2009) MM as a server but even after setting the 'Computer sleep' preference to 'Never' in the Energy Saver System Preferences panel, the MM still goes to sleep. This isn't a big issue for me since I can and have used Wake On Lan apps/scripts, but it's a major pain in the you-know-what for other people who need to access this server over the internet.
    Could there be some persistent overriding preference somewhere that is allowing this MM to go to sleep when in fact it should not be because of my setting? I've searched but can find anything.
    TIA for any help with this.

    Interesting... I had an EyeTV that I did install on an older G5 PowerMac that I stopped using before I migrated to this MM back in March. I'll check to see if the EyeTV app was also migrated over and uninstall it if necessary.
    I would have thought that the EyeTV software would default to a "Never Sleep" state considering it's purpose. I'll check this possibility out when I get home after the long weekend.

  • How to set value from one view to other view's context node attr b4 save

    HI all,
    My requirement is as below:
    There are two views in component BP_CONT.
    BP_CONT/ContactDetails    IMPL class
    BP_CONT/SalesEmployee   SALESEMPLOYEE    STRUCT.SALESEMPLOYEE
    I want to set value from first view to second view's context node's attribute.
    i get Sales Employee BP number in ContactDetails view, from here i want to set that value in to STRUCT.SALESEMPLOYEE
    of second view in the same component.
    please send me code snippet for doing the same.
    Thanks in advance.
    seema

    Hi Seema
    You can access the fields from different views by either using custom controllers or by using component controllers, in your case you can access the Sales employee BP number from the Component controller.
    first access the component controller  as below in BP_CONT/SalesEmployee  (in do_prepare_output method) or in (specific setter method)
    lv_compcontroller type ref to CL_BP_CONT_BSPWDCOMPONENT_IMPL,
    lv_partner type ref to cl_crm_bol_entity,
    lv_role type string,
    lv_partner_no type string.
    lv_employee TYPE REF TO if_bol_bo_property_access,
    lv_compcontroller  = me->COMP_CONTROLLER.
    lv_partner ?= lv_compcontroller  ->typed_context->-partner->collection_wrapper->get_current( ).
    lv_role = lv_partner->get_property( iv_attr_name = 'BP_ROLE' )
    IF LV_ROLE = 'SALESEMPLOYEE'
      lv_partner_no ?= lv_current->get_property( iv_attr_name = 'BP_NUMBER' ).
    endif.
    now set the value
    lv_employee ?= me->typed_context->salesemployee->collection_wrapper->get_current( )
    CHECK lv_employee IS BOUND.
        lv_employee->set_property( iv_attr_name = 'SALESEMPLOYEE' iv_value =  lv_partner_no  )
    Thanks & Regards
    Raj

  • HT201320 mail set up keeps telling me my passwords are incorrect.... also cannot find yahoo also won't save password in mail set up. deleted accounts to start over still wont work

    Email trouble on new mini ipad keeps telling me pass words are incorrect and won't save password. can't fin yahoo either

    I am having the problem with my att.net primary email account. We just upgraded to the iPhone 5 ...my husband's att email works, mine does not....it is driving me crazy!!!! I have deleted account, changed password to no avail...I hope someone figures out how to fix this soon.

  • Safari Bookmarks won't Save???

    When I save my safari bookmarks they save until I quit safari and reboot it. When I reboot it all of the bookmarks are gone. This happens every time I try. I am running Safari 6.0.2. Thanks for the Help!!

    Back up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Triple-click the following line to select it. Copy the selected text to the Clipboard (command-C):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -Rh $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Step 1 should give you usable permissions in your home folder. This step will restore special attributes set by OS X on some user folders to protect them from unintended deletion or renaming. You can skip this step if you don't consider that protection to be necessary, and if everything is working as expected after step 1.
    Boot into Recovery by holding down the key combination command-R at startup. Release the keys when you see a gray screen with a spinning dial.
    When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

Maybe you are looking for