Jump to content

Leon

Administrators
  • Posts

    1235
  • Joined

  • Last visited

  • Days Won

    58

Posts posted by Leon

  1. Original post: http://web.onassar.com/blog/2012/06/30/osx-bash-script-execution-through-keyboard-shortcut/



    While the full example is pretty thorough, I wanted to walk through the process I undertook to have some bash code/script run through a shortcut key. I'm going to split this into two pieces.

    Creating a Service

    From any application, you can go to the Application Menu, down to Services and choose one. These services can do a variety of things, such as copy/paste the open file's text, upload the file through an FTP application, etc.

    We want to create a service that runs a bash command/script.

    1. Prepare the bash command and test it in Terminal.app
    2. Open up Automator.app
    3. Create a new Service
    4. In the left column, under the Library header, choose the Utilities option
    5. In the column to the right, double-click the Run Shell Script option
    6. Paste your command into the textarea
    7. Above, under the Service received selected drop-down list, choose no input
    8. Hit Command-S to save it, and give it a name (in my case "rsync")
    Creating the shortcut key

    Now that the service has been created, we want to make sure it is both accessible through the theServices submenu, as well as having a shortcut key bound to it.

    Here are the steps to do both:

    1. Open up System Preferences.app
    2. Go to the Keyboard settings
    3. On the left, choose the Services option
    4. Scroll to the bottom, and ensure the rsync (or whatever name you gave it) option is checked
    5. When selecting the service, a button titled add shortcut should become visible. Choose this, and add your shortcut
    • Like 1
  2. Hi,
     

    First of all - welcome to OSXL.

    The laptop you have is this one.. http://www.dell.com/us/dfb/p/latitude-e6400/pd .. is that correct ?

    This laptop was made in two different models ... one with Nvidia graphics and one with Intel graphics.

    NVIDIA® Quadro® NVS 160M 256MB DDR2

    Intel® Graphics Media Accelerator 4500MHD

    The Intel model does not support QE/CI (Graphic acceleration) under OSX - basically because there is no driver made for that card by apple to begin with - on some machines, people have had a limited success to get it to work.

    The nvidia model however should work fine..

    So your option is:

     1. Live with it
     2. Replace the laptop or replace the motherboard.


     

  3. winclockmac.png

     

    If you dual boot your Windows PC with OS X or Linux, you may have experienced a problem in which your clocks reset themselves incorrectly every time you boot into Windows. Here's a simple registry edit to fix that.

    Essentially, the incorrect clock setting happens because OS X and Linux use GMT time while Windows tries to synchronize with your local time zone, getting confused when you reboot between the two. Apple's own Boot Camp drivers for Windows are supposed to fix this problem, though some users have noticed that it still happens even with the drivers installed, and some Linux users are left out in the cold. Furthermore, if you have a Hackintosh, you can't install the Boot Camp drivers, so you'll need to find another way around the problem.

    To fix it, just hit Start and type regedit.exe in the search box. Hit Enter and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation. Right click anywhere in the right pane and hit New > DWORD (32-bit) Value. Name it RealTimeIsUniversal, then double click on it and give it a value of 1. The next time you reboot from OS X into Windows, you should notice that your clock actually displays the correct time.
     

     
    • Like 1
  4. If you like me is strongly addicted to ical, then you have properly noticed that ical is usually set to PM/AM formats - now for us europeans PM/AM is like the air on the moon.. completely un-relevant.

    To fix this on mountain lion :

     1. Go into System prefs. -> Language & Text -> Region
     2. Click on the Customize button under "Times" and change it to something like this by click the white arrows after hour:

     

    24hour.jpg

    You might also want to remove the PM/AM markers


    Enjoy!



     

×
×
  • Create New...