Set askforpassworddelay in terminal using defaults

This defaults command is all over the web but is not working for me:
defaults -currentHost write com.apple.screensaver askForPasswordDelay -int 1800
This is probably because the XML tag for the askForPasswordDelay time us <real>.
<dict>
<key>askForPasswordDelay</key>
<real>60</real>
</dict>
I basically want to set the System Preferences/Security Password delay to immediately which would be:
<real>0.0</real>
Just not sure how to do it using the defaults command.
Thank you all!

AFAICT, the default setting for that item when initially setting the Security prefPane to require a password is 0.0, all I can suggest is to delete the plist and reset it. BTW, that plist is unique to each user. Here's mine:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>askForPassword</key>
<integer>1</integer>
<key>askForPasswordDelay</key>
<real>0.0</real>
</dict>
</plist>
See http://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/PropertyL ists/Introduction/Introduction.html for more details.

Similar Messages

  • Using defaults in command line

    Greetings,
    I am trying to learn if I can set a screensaver hotcorner using defaults, such as bottom left to "on". Something like:
    defaults -currentHost write com.apple.screensaver hotCorners somevalue
    I would really be grateful for the answer to this one, but it also presents a bigger question. Is there a way to glean the available defaults commands for a particular application? For instance, I would like to determine the configurable attributes of the screensaver.
    Thanks for sharing your knowledge.
    Regards,
    Tim

    ..."I am trying to learn if I can set a screensaver hotcorner using defaults, such as bottom left to "on"."...
    The "hot corner" functions all appear to be stored in the com.apple.dock.plist file, with an integer value of "5" denoting the assigned action to be screensave activation. So a 'defaults' command to set the "bottom left" corner to activate the screensaver might be something like:<pre>defaults write com.apple.dock wvous-bl-corner -int 5
    osascript -e 'tell application "Dock" to quit'</pre>
    The second command restarts the "Dock" so that the preference file is read.
    ..."Is there a way to glean the available defaults commands for a particular application?"...
    Of course, anything actually set from the application's preferences, or "System Preferences.app" can just be read from a .plist file so it's just a matter of finding the file and comparing the contents "before" and "after". For those that aren't, there probably is, but I don't know it - there was something posted a long time ago at macosxhints.com for earlier versions of OS X but it was already out of date and didn't work when I tried it, I think in Panther. There is currently another thread on this site discussing using 'strings' to try to find "candidate" words that might be used as property list keys - maybe join in there...

  • I am trying to set an open DNS using the MacAir. But when I tried to flush the existing one at utilities/terminal, it will not work.  I am using Yosemite.  May I know what should be the command line so that I can shift to an open DNS?  Thanks

    I am trying to set an open DNS using the MacAir. But when I tried to flush the existing one at utilities/terminal, it will not work.  I am using Yosemite.  May I know what should be the command line so that I can shift to an open DNS?  Thanks

    >SystemPreferences>Network>DNS

  • This is regarding CBMA in SAP PI 7.3.1. I have set up the alert mail using default java mail client.I do receive the alerts via mail. But my requirement is to direct all the mails to Business workplace inbox in ECC.

    This is regarding CBMA in single stack SAP PI 7.3.1. I have set up the alert mail using default java mail client.I do receive the alerts via mail. But my requirement is to direct all the alert mails to Business workplace inbox in ECC.
    So I need to set up PI to redirect mails to ECC Business workplace user inbox (sbwp). From here rules are set up & routed per distribution list.
    Please guide me how I can achieve this requirement.

    Hi,
    yes, it is a little bit different. This is the issue.....  
    But I am not sure if your links will help:
    1) /people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable
    is about a different solution. I do not need to count the number of lines of the source message.
    And the second variable is about concat line by line from unbound node to unbound node.
    My issue is:
    Souce:
    Message line (0...unbound) ! ! ! ! ! ! ! !
    .    ResultLine   (1..1)
    Mapping:
    =>   ResultLine1
           ResultLine2
           ResultLine........          => into UDF to an element  (1..1) in one mapping operation.
    So that all "ResultLine"s are included.
    The result is explained in the given link for Mail attachment with UDF.
    So I am not sure how to use this thread for my issue.
    In the comments of that blog Christoph Gerber writes that the new variable feature can only handle single values.
    So it is not suitable for my purposes as I have a list of values here that needs to be moved into the target message field.
    2) http://wiki.sdn.sap.com/wiki/display/Java/UsingEditJavaSectioninMessageMapping
    shows where to find the button "Java section" which is not available here in 7.1
    3) /people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14
    too is about the nice little button for Java Section that is no longer existing on PI 7.1 screen for mappings.  
    So my issue is: How to replace the Java section function with global variables in PI 7.1?
    Best regards
    Dirk

  • I am setting up ipads for use in an elementary, and I would like the "home screen" to be the apps, rather than the default with the chat, mail, etc icons.  how do I change that?

    Can anyone answer this question?
    I am setting up ipads for use in an elementary, and I would like the "home screen" to be the apps, rather than the default with the chat, mail, etc icons.  how do I change that?

    Depending on exactly what you want to do, there are a couple of ways of handling this. You may want to access teh user guide for some ideas: http://manuals.info.apple.com/en_US/ipad_user_guide.pdf
    In particular, check the sections on Customizing iPad and Settings > Restrictions.

  • HT201441 I have a used ipad mini.  I did a reset on it and I am trying to set it back up, but it is still tied to last users iTunes ID and will not let me set it up with mine.  Any ideas.  I tried setting it back to factory defaults with usb cable, but st

    I have a used ipad mini.  I did a reset on it and I am trying to set it back up, but it is still tied to last users iTunes ID and will not let me set it up with mine.  Any ideas.  I tried setting it back to factory defaults with usb cable, but still no go.  How do I activate ipad mini with my iTunes ID.

    delete the email account and try again

  • Why is my iphone 5 not using default ring tone even though it is set for my personal tone in defaults!!

    Why is my iphone 5 not using default ring tone even though it is set for my personal tone in defaults!!

    Hello Rob,
    Welcome to the Apple Support Communities. You may have a contact that has a different ringtone assigned to it. Just navigate to the contact and see what ringtone is assigned to them.
    iPhone: Ringtones
    http://support.apple.com/kb/ta38610
    Setting Ringtones
    In addition to the default ringtone, you can assign individual ringtones to people in your contacts so that you can tell when a particular person calls.
    Alternatively you can reset all settings in Settings > General > Reset > Reset All Settings. This would put your iPhone at factory default on everything settings wise and it does not touch the data on the phone
    Regards,
    -Norm G.

  • How to use Default value in a column in Tabular form in insertion or upda

    Hello,
    I am trying to use Default values so that user need not have to enter data, but when I select default type and put a default value, I see an error message, if I try to add a new row.
    How can I use a default value in a Column in a Tabular Form?
    Gouri
    Edited by: user1046395 on Apr 3, 2009 9:58 AM

    Gouri,
    You can just simply edit to each column's report attribute. For example,
    To set default date,
    Default Type: PL/SQL Expression of Function
    Default: sysdate
    To set default text,
    Default Type: PL/SQL Expression of Function
    Default: *'CLERK'*
    If you still have an error, what is the error message?
    Ittichai

  • All future MacBook with 10.7 Lion will be set to 64bit kernel by default always ?

    Dear Apple and Mac Expert,
    Actually I hope Apple can answer this if possible or someone can redirect me to any Apple post ?
    I learned that right from 10.7 Lion available, the default kernel mode is always set to 64bit no matter installed in MacBook White or Pro. I am wondering is it same for all future MacBook Air and Pro that come with 10.7 Lion will be set to 64bit kernel by default??
    I really need a confirmation on this to support my future plan.
    Appreciate Apple can answer this or someone can help.
    Thanks in advanced!

    Apple typically does not answer questions here. Further, your question invites speculation about future product releases, which is specifically forbidden in the Terms of Use for these forums.
    That having been said, Apple usually looks forward, not back. Once they remove something it is usually gone forever. Witness the floppy drive disappearing in the late 1990s.
    Best of luck.

  • Set Microsoft Outlook as the default mail client.

    Every time I am trying to sync my calendar, notes and mail account with my iPhone through iTunes I keep getting a notifactions saying 'Either there is no default mail client or the current mail client cannot fulfill the messaging request. Please run Microsoft Outlook and set it as the default mail client'.
    The problem is that Outlook IS the default client.
    Why can iTunes not complete this task for me...
    Microsoft Office Professional Plus 2010 Build 14.0.4536.1000 64-bit.
    Thanks.

    I'm getting this and it's really annonying. The Nokia PC Suite provided a basic but functional PC calendar. Surely there's a simple PC client for the iPhone Calendar somewhere. I use Outlook Express and started using Outlook 2002 to manage my calendar but since a recent iTunes upgrade it's stopped working, giving this "default mail client" error. When I set Outlook to be the default mail client it made no difference.
    Apple - you've scored an own goal here. Something that did work now doesn't work, and the only thing that's changed is your software.
    I don't doubt it's down to compatability with M$ Outlook Add-ins, but they've not changed.

  • How to set current year,month as default value in combo box

    hi,  im newbie of xcelsius user
    i realize  that hv a issue that display combo box base on year & month
    let said
    <b><u>step 1</u></b>
    I create excel data like this
    <b><u>year___ </u>  </b>    |     <u><b>month_   </b></u> |     <u><b>Product</b></u> |     <u><b>revenue</b></u>
    02-04-09 |     02-04-09 |       a |     $4,154
    03-04-09 |     03-04-09 |       b |     $6,813
    04-05-09 |     04-05-09 |       a |     $9,875
    05-06-09 |     05-06-09 |       b |     $6,813
    06-04-10 |     06-04-10 |       a |     $6,813
    07-04-10 |     07-04-10 |       b |     $9,875
    08-06-10 |     08-06-10 |       a |     $9,875
    22-06-10 |     22-06-10 |       b |     $6,813
    <u><b>Step2</b></u>
    Then i go format cell to format/custom date to year & month
    Eg1: Year u2013>  02-04-09  convert to u2018YYYYu2019 (2009)
    Eg2: Month u2013>  02-04-09  convert to u2018mmmmu2019 (April)
    So output like this
    <u><b>year</b></u> |     <u><b>month</b></u> |     <u><b>Product</b></u> |     <u><b>revenue </b></u>
    2009 |     April |     a |     $4,154
    2009 |     April |     b |     $6,813
    2009 |     May |     a |     $9,875
    2009 |     June |     b |     $6,813
    2010 |     April |     a |     $6,813
    2010 |     April |     b |      $9,875
    2010 |     June |     a |     $9,875
    2010 |     June |     b |     $6,813
    But the problem is when i insert to combo box,use u201Cfilter Row u201D, i excpectation will display only 2009,2010
    But Actual display the Year  in combo box is duplicated :'(
    so any solution ? and then only how to set current year & month as default value  :'(
    thanks,
    regards
    s1
    Edited by: Leong Pui Kee on Feb 25, 2011 5:25 AM
    Edited by: Leong Pui Kee on Feb 25, 2011 5:36 AM

    hi,
    your created  data
    step 1
    I create excel data like this
    year___ | month_ | Product | revenue
    02-04-09 | 02-04-09 | a | $4,154
    03-04-09 | 03-04-09 | b | $6,813
    04-05-09 | 04-05-09 | a | $9,875
    05-06-09 | 05-06-09 | b | $6,813
    06-04-10 | 06-04-10 | a | $6,813
    07-04-10 | 07-04-10 | b | $9,875
    08-06-10 | 08-06-10 | a | $9,875
    22-06-10 | 22-06-10 | b | $6,813
    In this, year and month both are same data, make the diffent data like year  2009, 2010  And month Jan, Feb, March, ...Etc 
    and also one more check you formulas on month and year, select correct source data, destination data  for compoonent..
    OR
    from above, to create a date column and convert  date-->year, date--> month and Explore it.
    All the best,
    Praveen

  • How to set system date as a default value in UIX/XML page?

    Example: We set default values using following statements:
    <set property="inputValue" target="${bindings.PoNumber}" value="${'1234'}"/>
    <set property="inputValue" target="${bindings.UserName}" value="${param.MyParam1}"/>
    In JDeveloper Help, we cannot find a way to set a Date attribute's default value to today's (system) date. Any suggestions?
    Also, does anyone have a reccomendation on a good book for uix/xml?
    Thanks, Ali.

    bump

  • Set Adobe Reader 9 as Default pdf Opener

    New laptop.  I have Adobe Acrobat 5 and Adobe Reader 9 installed.  Need the 5 because it has Acrobat Distiller.
    PROBLEM:  When I try to open pdfs from the web I get an error (The Adobe/Acrobat Reader that is running cannot be used to view pdf files from the Web Browser.  Version 8 or 9 is required.)
    Working in Microsoft Windows environment.
    How can I set version 9 as the default to open web files?
    Thanks!

    Found the fix in some of the previous posts that showed up on the right of my screen after I posted this question.  Nice system!

  • Use 'default' keyword in call string while calling stored proc?

    I am calling following sql server stored procedure from java code using my jdbc driver for sql server: CREATE PROCEDURE test_findTbInfo (
    @paramIn_Str varchar(10),
    @paramOut_Int int OUT,
    @paramIn_Int int = 20
    AS
    begin
    set @paramOut_Int = @paramIn_Int * 100
    end
    If I make a call like this:
    CallableStatement cs = conn.prepareCall(" { call test_findTbInfo(? , , ? ) }");
    cs.setString(1, "test_tab");
    cs.setInt(2, 4);
    cs.execute();
    It works without any error. But this is not a right behavior. !! The second parameter as you see is passed like an optional parameter. But in stored proc it is NOT an optional param and so if the value not passed it should fail...
    Now if I change the code to
    CallableStatement cs = conn.prepareCall(" { call test_findTbInfo(? , default, ? ) }");
    it works correctly. Gives error that "Procedure 'test_findTbInfo' expects parameter '@paramOut_Int', which was not supplied." which is correct.
    So is it a normal practice to use 'default' keyword while calling sql server stored procedures having optional parameters in jdbc ????
    Anyone knows ??? As far as I know "call test_findTbInfo(? , , ? )" works fine except in some cases and also it forces users to put all optional parameters at the end of parameter list in stored proc.
    Please let me know whether I should go with 'default' throuout for sql server stored proc while calling using my jdbc driver.
    Amit

    {?= call <procedure-name>[<arg1>,<arg2>, ...]}The question mark in the above is the result parameter
    that must be registered.
    That is not the same as an OUT argument.Yes that is true. The result value and OUT parameters are different but they both MUST be registered as per jdbc API
    "The type of all OUT parameters must be registered prior to executing the stored procedure; their values are retrieved after execution via the get methods provided here."
    Anyway, my original question still stays as it was. If there are some optional IN parameters in stored procedure
    e.g.
    PROCEDURE test_findTbInfo (
    @paramIn_Int int = 20,
    @paramOut_Int int OUT
    how do you call this?
    CallableStatement cs = conn.prepareCall(" { call test_findTbInfo( , ? ) }");
    cs.registerOutParameter(1, Types.INTEGER);
    cs.execute();
    or
    CallableStatement cs = conn.prepareCall(" { call test_findTbInfo(default, ? ) }");
    Also note that I am intending to use ONLY sql server driver for this.
    The first as well second seem to work. Except that second way is seems reliable. I just wanted a second opinion on that...
    Amit

  • I want to set up Safari as my default browser

    I want to set up Safari as me default browser. I also have firefox and somehow firefox is the default browser. It seems that I cannot print things out from firefox?

    Try this. In Safari, go to Preferences (in the "Safari" menu). Go to the "General" pane and look at the top for "Default web browser". Use this pull-down menu to set the default ot Safari.
    Hope that helps!

Maybe you are looking for