How to: script or shortcuts

Hi,
I am 3 weeks into using the mac and loved it.
I have set my imac to NEVER sleep because I am always constantly doing FCP video captures. When I am done with it, I have to manually go back to reset my sleep and energy preferences.
I am just wandering to see if there is/are any shortcuts or scripts that I can create to reset the preferences or do any type of scripting within mac os. This way, I can just click on the script and it will do the job for me.
Any help appreciated.

The following script should reset your Energy Saver preferences.
*tell application "System Preferences"*
*reveal pane id "com.apple.preference.energysaver"*
*tell application "System Events" to tell process "System Preferences"*
*click button 1 of tab group 1 of window 1*
*end tell*
*end tell*

Similar Messages

  • How terminate script, keyboard shortcut [CS4 6.0.6 JS]?

    In ID CS4 6.0.5 for terminate script with keyboard shortcut I use Esc or command + "."
    In 6.0.6 if the script is a binary (jsxbin) the shortcut  don't work.
    Why?
    Any alternative for Mac and PC?

    Hi barbara.banister,
    Please go through the below web links its helps to you. How to install the script in InDesign.
    http://indesignsecrets.com/how-to-install-scripts-in-indesign.php
    http://indesignsecrets.com/how-to-install-a-script-in-indesign-that-you-found-in-a-forum-o r-blog-post.php
    thx,
    csm_phil

  • How to script a shortcut for dead styles but still alive?

    When style B is based on style A the instruction «select all unused» [in order to delete them] is not real if style A is still resident in style B as «Based On» [premise: A is now unused...after changes in the layout remained unusable)
    The idea of opening B, D, E , E etc to tag them as based in «no paragraph» in order to delete A', B', C for cleaning table of styles is a consuming task.

    Ariel,
    Hi, yes, deleting A, when is still present in B, will damage the entire file.
    But the path is when style B is opened and changed to «based on no paragraph».
    Now style A may be deleted.
    The idea is a script that go to all the styles in the document and make inside this operation.
    Now you may delete the unused styles and nothing strange happens.
    The idea is to obtain a clean publication for the future (while working many times is no time to spend in avoid styles based on no paragraph o to delete...)
    Thank you.

  • How to make the shortcut (accelerator) a ContextMenu to be global?

    how to make the shortcut (accelerator) a ContextMenu to be global to the Stage?

    OK, I'm going the applescript route. When I run the script within automator, it works fine. However, when I run the script from a menu as a service, it has no effect at all on iTunes. I must be missing something.
    Here's my script:
    tell application "iTunes"
              if player state is stopped then return
              try
                        set player position to (get player position) + (-5)
              end try
    end tell

  • [SOLVED] How to add keyboard shortcuts in XFCE?

    I'm giving XFCE a try lately after all of the changes I'm seeing, I'm trying to add a new shortcut to ease some tasks but I don't have a clue on how to do it.
    I go to Settings -> Keyboard and there to "Application shortcuts". Then I  select to add a new one and point to the script I want to run, but I don't have a clue on how to select the shortcut. I've tried pressing the keys I want to bind, but no way.
    This is what I'm seeing:
    How to choose the actual shortcut?
    Last edited by KaoDome (2012-05-11 13:16:03)

    It is the next screen   Pick the command, click OK.  It then throws up a box telling you to press the key combination.  It will show as you push meta, shift and control modifiers.  When you hit a character that generates a keystroke, it saves it, along with the modifiers.

  • How do I put shortcuts to web sites in a (?) tool bar/browser bar...don't know what it is called. With IE, I can just drag the tab for the site to the area I want.

    How do I put shortcuts to web sites in a (?) tool bar/browser bar...don't know what it is called. With IE, I can just drag the tab for the site to the area I want

    Near the right-end of the address bar is a white star which can be difficult to see, but look closely. When you wish to bookmark a shortcut to the toolbar, double click the star. A window will open with the name of the webpage. Under that is the folder box which will probably read 'Unsorted Bookmarks'. Click the drop down arrow and change it to 'Bookmarks Toolbar' then click done.
    I have several folders on my toolbar such as Music, Mail, etc. in which I add multiple websites. If you wish to add a folder, click the second drop down arrow next to 'Bookmark Toolbar' and click 'New Folder' and give it a name.
    To add a bookmark to a folder, again double click the star, make sure you are in Bookmark Toolbar and click one of the two drop down arrows to find the name of the folder.
    For other bookmarks use Bookmark Menu. Whatever is added here can be accessed by Bookmarks on the Menu Bar. If your Menu Bar with Bookmark, File, View, etc. is not visible, click the Alt key and they will become visible. To keep the Menu Bar, click View, Toolbars and check Menu Bar.

  • How to create a shortcut for desktop as with IE?

    I've switched my browser to "Firefox" from 'Internet Explorer and would like to know how to create a shortcut for my desktop.

    You can drag the favicon on the left end of the location bar onto the desktop to create a shortcut.
    You can also use an extension.
    * SaveLink: https://addons.mozilla.org/en-US/firefox/addon/savelink/
    * Deskcut: https://addons.mozilla.org/en-US/firefox/addon/deskcut/

  • I just installed ios7 on my iPhone 4s.  It seems to be working fine but all of the apps I had previously installed are gone.  They show up in my app store as purchased, but the shortcuts are gone.  Does anyone know how to get the shortcuts back?  Thanks!

    I just installed ios7 on my iPhone 4s.  It seems to be working fine but all of the apps I had previously installed are gone.  They show up in my app store as purchased, but the shortcuts are gone.  Does anyone know how to get the shortcuts back?  Thanks!

    I updated via my iPhone 4s.  The apps were on my iPhone 4s.  That's all the information that I have.  The update to ios7 seems to have gone smoothly - everything else is working, phone texting, email, internet, etc.  But all of the apps I had installed over the past year are no longer showing up as shortcuts.  No facebook, no twitter, no espn, etc.  They are all still listed in my app store as purchased, but the shortcuts and my folders are gone.  Thanks.

  • How to create a shortcut for a new application?

    I have made an application. I did a blankform too, which is the 1st form to start. Now I`d like to know how to create a shortcut that this form will start from a win desktop. What to write in the shortcut`s target (the path to the blankform- thats the name of it)!

    Well, if it's forms 10g, you can simply add the URL in your favourites and open it by selecting it from favourites menu of internet explorer.
    Please mark answer as helpful / correct, if it helps you
    Navnit

  • How do I place shortcut for Adobe Reader on my desktop in Windows 8.1?

    How do I place shortcut for Adobe Reader on my desktop in Windows 8.1?

    This may be helpful:
    Desktop Shortcuts in Windows 8 - Microsoft Community
    Be well...

  • How to add a shortcut in Firefox to open Thunderbird E.mail program

    What I need to know is how to add a shortcut link so I can open Thunderbird E.mail program while using Firefox. the same as you can open Outlook Express while using MS Internet Explorer by clicking the MAIL button, In other words is there a link to the E.mail program frn within Firefox.

    Install the GetMail extension to add that feature to Firefox. <br />
    http://webdesigns.ms11.net/getmail.html

  • How to create a shortcut on desktop

    how to create a shortcut on desktop

    Hi Julie,
    Sounds like you're using Acrobat.com. What browser are you using? The steps will vary a bit for the different browsers, but here are instructions for several popular web browsers:
    Create a desktop shortcut to a website | Firefox Help
    How to Create a Shortcut to the Current Web Page (Internet Explorer)
    How to Create Shortcuts to Websites on a Desktop for a Mac | Chron.com (Safari)
    Best,
    Sara

  • How to create a shortcut menu for the pane

    Hi all
    Well - I know how to create a shortcut menu for a control, but how is it created for a pane? There is the possibility to add an event case for a shortcut menu linked to a pane (see picture), but how can I create this menu?
    Message Edited by becktho on 08-01-2006 11:32 AM
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    ScreenShot001.png ‏22 KB

    ahlers option works, sorry but I can't add images from work!
    Just use the shortcut Menu Activation filter event? to create a menu.
    Ton
    Message Edited by TonP on 08-01-2006 12:56 PM
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!
    Attachments:
    Example_BD.png ‏4 KB
    Example_BD.png ‏4 KB

  • How to delete desktop shortcuts

    Hello all,
    Can anyone tell me how to delete desktop shortcuts with LabVIEW.
    I tried with delete.vi & through cmd but its deleting actual source file.
    Just I want to remove corresponding shortcut from desktop (It should not delete actual source file).
    Please help me if anyone have idea.
    Munna

    Munna232 wrote:
    I can delete shortcuts from given input folder (if I'm running this VI alone). But when I’m making this VI as subvi, shortcuts are deleting but still its showing in the mentioned folder. When I’m refreshing that folder, its disappearing.
    That sounds like normal Windows behavior to me.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to script out to connect to Active Directory specific domain controller server?

    How to script out a script that enable us to connect to the specific domain controller server, it is because I have 2 different servers version and both of them have been communicate with powershell, thus, I wanted to powershell to communicate with one
    server version. How to script this out? 

    Please see the Posting Guidlines:
    http://social.technet.microsoft.com/Forums/en-US/a0def745-4831-4de0-a040-63b63e7be7ae/posting-guidelines?forum=ITCG
    and this article on how to ask questions in a technical forum:
    http://sincealtair.blogspot.com/2010/04/how-to-ask-questions-in-technical-forum.html
    [string](0..33|%{[char][int](46+("686552495351636652556262185355647068516270555358646562655775 0645570").substring(($_*2),2))})-replace " "

Maybe you are looking for

  • MM - Purchase Order Form Setup

    Hi Experts, I am from FICO area but unfortunately my client wants me to support on MM module (only in small areas) and I need support on below: Currently we are printing Purchase Order form for vendors but now there was change in purchase order form

  • Lenovo H Series desktops H520 Desktop bios

    Hi desktops H520 My problem I entered the bios and changed a bit in the settings specifically in devices Video Setup I do not remember what this has done is important to change a setting from Automatic to the middle option I do not remember what it w

  • Ebay searches not showing images

    When viewing my messages from ebay in hotmail the images are not showing up until I refresh at least two or three plus times. Why is this?

  • I am unable to select a carrier on my 5s when roaming

    Hi - I am unable to select a carrier under "settings" on my 5s. This is a problem I have had with my 4s, 5 and now 5s. I was told by my carrier that the reason was due to me using an old SIM card (32 bit) instead of the required 64 bit SIM card. I up

  • How do I import collections from PE version 5 to PE version 10

    Have changed my computer and installed the latest version of PE. I have saved the collection structure in PE v.5 as an XML file and imported this into V10 but this only imports the collection headings and NOT the photos associated with the collection