Automate a command

I have a command that I run in terminal every time I reboot/start my iMac.
I need to run "sudo pmset halfdim 0". Apple Support has been unable to figure this out why this setting isn't remembered after rebooting/starting. The last thing they ask me to do was to re-install the operating system which I do not want to do at this time.
If possible I would like to automate this task but I'm new to the Mac platform and am not sure how or if I can do this.
If this is possible, can one of you point me in the right direction?
Thank you.

rongreen
Welcome to discussions. In the GUI world, energy saving configurations are saved in /Library/Preferences/SystemConfiguration/com.apple.PowerManagement.plist. Trashing it and restarting may help.

Similar Messages

  • Automate: The command is not currently available

    I keep getting this every time I record a action and try and play it back in automate:
    automate the command is not currently available
    tried google not getting anything
    im using 64bit photoshop cs4 adn win xp x64
    thanks for your help
    Jamie

    I'm having the exact same problem, I am working in cs4, and any of my batches I try to run even the default batches, when I try to batch I get
    (The command "                  " is not currently available),
    and I just can't figure it out, and I'm on a deadline with these its a very large launch.  Any batch I try to run does the same thing that's why in between the quotes are empty.
    I'm running TIFF's but it doesn't matter because I've done this before over and over for 3 years now and I have been working with Photoshop since its birth in 1990,
    I'm sweatin bullets please help.
    J0hNNy D

  • Is it possible to automate the command enabling?

    Is it possible to automate the command enabling in acrobat 9 through SDK.
    If so kindly advice me.

    Hi Pradubass,
    By "command enabling" I assume you mean the usage rights for commenting, saving, etc in the free Adobe Reader? No, there is no way to automate that process via JavaScript. Adobe sells a server product that does that called Adobe LiveCycle Reader Extension Server ES.
    Hope this helps,
    Dimitri
    WindJack Solutions
    www.pdfscripting.com
    www.windjack.com

  • How can i disable the automatic move command?

    how can i disable the automatic move command?  when i choose the move command it automatically moves whatever element that's selected, using the previous dimension used to move something.  Big Problem.

    went back to see if Preview was checked - it isn't.
    It happens when we double-click on the arrow to open the move dialouge box, but the box doesn't open - instead the selected item is automatically moved #!@**
    that's what we need to stop... any ideas?

  • Automatic shutdown command does not show warning message

    I'm trying to automatically shutdown a computer remotely and I'm sending the following command:
    shutdown -h +2 "Shutting down in 2 minutes."
    I want users to be able to have a warning before the system shuts down.
    The machine is shutting down, but my message is not popping up.

    shutdown is a Unix shutdown command and it sends its shutdown message to terminal sessions.  Are you users using the terminal?
    Otherwise maybe you want to try getting help for an Applescript popup, or maybe using Growl which has a command line utility for generating growl messages on screen.

  • Can't select files when using Automate batch command

    Hi all,
    I'm having a huge problem here.
    I am working with CS3 on a mac (leopard).
    I batch process (when applying actions) all the time using the Automate/Batch process command.
    I have been doing this for years on my computer but all of a sudden it has developed a problem. When I bring up the batch command and select a source folder, I am not able to select any of the files (jpgs/tiffs) . They are not highlighted for me to select them.
    So far I have deactivated and re-installed CS3 on my computer. Still not working. So, I have downloaded CS3 onto my laptop and taken the files from my desktop onto the laptop and the problem is the same. Like I said, this has just started happening for no reason after years of working fine.
    Please, please, can anyone help.
    Thx.
    Richard.

    I hardly use the feature, so I may have missed some change, but »Folder« seems to indicate that You are to select a Folder, not Files.

  • Automate Terminal command for Adobe Update Server

    Hi all,
    I'm using and internal Adobe Server to distribute the applications updates to all the clients.
    The internal server need to be updated via Terminal, using this command
    sudo /Applications/Utilities/Adobe\ Application\ Manager/CCP/utilities/AUSST/AdobeUpdateServerSetupTool --root="Volumes/Backup_Interno/AdobeServer" --incremetal
    I would like to use Automator to launch this command every sunday at 8AM, possibly without manually insert the admin password.
    Can someone help with this?
    Thanks

    hi ned
    thanks for answer
    i setup adobe update server with IIS (AUSST), when i start downloading the updates for the inhouse server it automatic creates 2 dirctories (MAC and WIN) and download the whole adobe updates for MAC and WIN together, the question is if i can download the updates only for Windows without MAC
    Sharoni

  • Automate terminal command

    I figured out how to run multiple copies of skype by launching the .app file from different osx user accounts in terminal.  What I'm trying to do now is script this or automate opening terminal and typing the line with automator.  The following is the line that I use.
    su user2 -c "/Applications/Skype.app/Contents/MacOS/Skype && exit"
    And I just change user2 to user3 for a third instance of skype and so on.  Can someone show me how ot automate this process?  Thanks.? Thanks.

    i want to keep the password though,  I'm thinking about just using keystroke to have it put the password in each time.  something like:
    This is doable, but is also an incredibly bad idea. You see, for the most part, keystroke is blind - it doesn't care (or know) where it's typing and you'd be blindly typing each user's password with no idea of where it's going. Is it going to Terminal.app? maybe, maybe not. Even if it is there's no guarantee that it's typing in the right window, or that the window is even expecting a password.
    It's also entirely reasonable (probable, even) that you're not in Terminal.app. Nothing in the script activates Terminal.app, so you could be in another application at the time, or the user could have switched applications while the script is running - the script will continue to launch Terminal.app windows and scripts in the background while keystroke happily types the password into whatever frontmost app is around.
    OK, this is over-simplified, because it is possible to target an application to receive the keystrokes, but my aim is to illustrate the point.
    In either case, I wouldn't use keystroke at all. It would be better to use a second do script command - remember, do script does little more than type the text into a terminal window.... the difference is that at least you know you're in Terminal.app. The trick is getting to know where you're typing. The trick here is that do script will return a reference to the window/tab where the command was executed, so you can capture this after your first command (to launch Skype) and use that as the target for subsequent commands/typing in the same window, e.g. (untested):
    set theUsers to {"user2", "user3", "user8", "user11", "user4", "user5", "user6", "user7", "user9"}
    set thePWs to {"aaaa", "bbbb", "cccc", "dddd", "eeee", "ffff", "gggg", "hhhh", "iiii"}
    repeat with i from 1 to count theUsers
              set eachUser to item i of theUsers
              set eachPW to item i of thePWs
              tell application "Terminal"
                        set myWindow to do script "su " & eachUser & " -c /Applications/Skype.app/Contents/MacOS/Skype"
      delay 1 -- optional - allow time for Terminal.app to do its thing
      do script eachPW in myWindow
                        do script "exit" in myWindow
              end tell
    end repeat
    In thie way, do script has the command to launch skype and passes back the window/tab reference. After a short delay the password is typed in that window/tab, followed by the 'exit' to close the window.
    Incidentally, the use of sudo, as suggested above, obviates the need to type each user's password in a shell and avoids this issue altogether.

  • Open PDF in Fullscreen mode automatically via command line.

    Good afternoon,
    I need to open a PDF file in Reader 11 via Command Prompt. We are using a PDF in kiosk mode and I need to know the /a argument to run in Full Screen.  Thanks.

    Try setting that in the Initial View settings of the PDF Document.

  • VISA, envoi automatique de commandes à la suite...

    Bonjour à tous,
    Je souhaite envoyer des commandes en VISA les unes à la suite des autres avec une attente de réponse ( quasi immédiate ) d'un nombre d'octets indéfini. Auriez vous une idée de la façon de faire ? 
    Ma façon de faire ne fais passer la seconde commande qu'une fois sur 100.... 
    Merci de votre aide.

    Bonjour,
    et merci d'avoir posté sur nos forums.
    Quel moyen de programmation utilisez-vous pour automatiser vos écritures/lectures ?
    Est-ce que vos commandes envoyées sont identiques ? Si c'est le cas, vous pouvez simplement cadencer vos fonctions VISA Write et VISA Write dans une boucle while.
    Dans le cas contraire, vous pouvez gérer l'envoi de vos diverses commandes par une séquence, ou par une machine à état. Je vous renvoie ici pour cette dernière méthode, supposant que vous développez sous LabVIEW.
    Par ailleurs, concernant le nombre d'octets à lire, il peut être indéfini en détectant par exemple la fin de la lecture sur un caractère de terminaison (\r ou \n).
    Cordialement,
    Eric M. - Application Engineering Specialist
    Certified LabVIEW Architect
    Certified LabWindows™/CVI Developer

  • Batch command not closing files automatically

    Hi,
    Photoshop CS6
    Windows 7
    How do you make Photoshop automatically save and close a batch of raw files during batch runs?
    I'm just now trying the File>Automate>Batch command. I want to run an action on a bunch of .NEF raw files.
    How do you get rid of all the dialogs and just make the thing do the action? i.e., just OpenTheRawFile>RunTheAction>SaveAndClose>DoTheNextFile
    First it opened them all up one by one in Camera Raw and the ACR window stayed open until I clicked Open Image. So I checked Suppress File Open Options Dialog in the Batch command. That fixed that problem. But Batch left all the files open in Photoshop, didn't close any of them.
    So I went back into my action and added a file close. While recording the action I clicked Yes to save changes before closing the file.
    However, the batch now pops up that same dialog box after each file asking me if I want to save the file before exiting. This defeats the whole purpose of the Batch command.

    Do not use Batch, use one of the available Image Processor scripts instead.  If your RAW files have been converted before and have associated ACR setting, The RAW files will be converted  using these settings by ACR and ACR will bypass displaying its dialog. If the RAW files have no associated ACR settings the Image Processor scripts have an option that you can use to have the Image Processor open the first RAW file via ACR  where ACR will open its dialog. The settings you set will be used to convert all the RAW files processed in the current run of the Image Processor.
    Image Processor Pro is available on the web for downloading and is more flexible and powerful then the Image Processor that is shipped with Photoshop. You can set it up to save as many Image File for each file processed. The size and File Type you need.
    You can have the Image Processor Pro include in its process an action you create for file that are saved. It can be the same action or different action for each of the file save you set up.

  • Automate RAID 5 on Xserve via Command Line

    Is there a way to automate via command line the Xserve to have RAID 5?

    Hi
    Assuming you have an Apple RAID Card installed and if I've understood you correctly, possibly:
    http://www.manpagez.com/man/8/raidutil/
    Something like:
    raidutil create raidset -n set1 -d 1,2,3 -r 5
    Should create a Raid Set called set1 using drives 1, 2, 3 as a raid 5.
    Tony

  • How can LabVIEW press a command button in access form?

    Situation: access database with a command button, who generate a code after pushing
    Task: LabVIEW open the access database, pressed the command button and read out the code
    Status:
    use activeX to open the access database - ready
    press the command button - open
    read out the code - open
    Problem: Is there a possibility that LabVIEW press automatically the command button in the access form?
    Solved!
    Go to Solution.

    First off, you are confusing your terms. Access is not a database. It's an development environment for creating applications that use databases. By default, Access uses a DBMS called Jet that is built into Windows, but it can use others like SQL Server or even Oracle.
    Second, in terms of pushing the button, that is totally dependent upon what functionality Access' ActiveX interface chooses to expose to external applications.
    Third, what does the button actually do? The statement, "..generate a code.." is meaningless. Does it perform a query? Does it generate a report? Does it modify records?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Oracle VM Manager Command Line Interface

    Can anybody suggest any tool for Oracle VM Manager Command Line Interface?
    Are they free?
    What kind of jobs we can automate using Command line?
    If they are not free is it worth spending money to buy them?

    Try public-yum.oracle.com
    and look at the oracle-addons channel below OEL.
    http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/oracle_addons/i386/
    Regards
    Sebastian

  • Command line parameters for OMBPlus?

    Hi,
    Is it possible to pass command line parameters to TCL scripts running in OMBPlus.sh, and if so, can someone provide an example?
    I'm able to use the argv0 variable to get the script name itself but not sure how to get any other additional parms...
    Thanks,
    Jim

    Jim,
    If you are building command-line scripts to automate OMB+ commands, there is another factor you should be aware of. If your script errors out cleanly, the OMBPlus.sh does NOT pass this back to the shell. The return code is evaluated within OMBPlus as the return from a "source" command and then OMBPlus exits normally.
    For example:
    #file test.tcl
    return -code error
    Unix/shell> OMBPlus.sh test.tcl
    Unix/shell> echo $?
    0What I do to pass an error state back to the shell is to create a flag file in my script if exiting due to error. My shell script deletes this file prior to running the script and then tests for it after the run as part of the conditional logic
    Function in tcl file:
    #Get location where this script installed
    #This variable is set at the top of the script.
    set theScriptDir  [ file dirname [info script]]
    #If we want to bail in the script at any point we call exit_failure with an appropriate error message
    proc exit_failure { msg } {
       global theScriptDir 
       set ERRFLAGFILE "$theScriptDir/ers_owb_import.error"
    #rollback any uncommitted work
       OMBROLLBACK
    #Log the error and exit
       set fout [open "$ERRFLAGFILE" a+]     
       puts $fout "Error:-> $msg"
       close $fout
       # return and also bail from calling function
       return -code error
    }And my shell script does something like:
    cd ${JOB_DIR}
    rm -f ers_owb_import.error 2>/dev/null
    echo \\nBegining Uninstall of OWB Project
    ./OMBPlus.sh ${JOB_DIR}/my_tcl_Script.tcl
    if [ -f ${JOB_DIR}/ers_owb_import.error ] ; then
          echo \\nERROR - SCRIPT FAILED
    else
         echo \\nScript Succeeded.
         # script logic continues....
    fiCheers,
    Mike

Maybe you are looking for

  • Downloads Folder Help Please :(

    Hi all, A friend sent me a RAR file, i unpacked it and nothing appeared in the downloads folder where i unpacked it to ???? after doing this a couple of times as i thought it might be a blip, i deleted everything in the folder. but the folder states

  • Thunderbolt mac mini doesn't work

    Good evening. I cannot see my MacBook Air SSD, in target disk, on my Mac Mini mid-2011. I tried it with other Mac with success. I try too to use thunderbolt Ethernet adapter on my Mac Mini without success. My Mac mini is on Mac Os X.7.5. Thanks.

  • How do I upload an idvd project to youtube or facebook?

    I would love to upload an idvd project to youtube to share on facebook. Currently, my imovie does not work (that's another help question for another time). I am not sure if iphoto is an option because my idvd project has many movie clips in the slide

  • Start up has pink vertical lines then monitor goes blank on iMac

    I was working on my computer when all of a sudden the screen went grey with 5 vertical pink lines appeared. I have switched the monitor off, but now it starts up with the pink lines then goes to a blank screen, what is the problem?

  • Good name (or maybe a pattern) for a client-side data accessor

    Hello, I am building a client/server app, the client is a Swing application. The client needs to read/write information to the server. I have a set of "DAO" classes that encapsulate remote acces: package myapp.client; public class OrderDAO {     publ