Command key lock?

I would like to batch delete duplicate tracks that are not in sequence.
How do I keep the command key locked without having to keep it pressed.

Hi  XXtremeMachine,
I fixed up the script and this should work ok.
global do_quit
on run
  -- bring iTunes to the front
          set do_quit to false
          tell application "iTunes"
  launch
  activate
          end tell
          tell application "System Events" to key down command
          say "command key down" without waiting until completion
end run
on idle
          tell application "System Events"
                    if exists process "iTunes" then
                              if not (frontmost of process "iTunes") then
                                        set do_quit to true
                                        quit me
                              end if
                    else
                              set do_quit to true
                              quit me
                    end if
          end tell
          return 2
end idle
on quit
          tell application "System Events" to key up command
          say "command key up"
          continue quit
end quit
To turn off the lock, the user can quit this app, quit iTunes, or bring another application to the front.
gl,
kel

Similar Messages

  • I cant use the X key on my imac wired keyboard, the key viewer shows the two commands keys pressed when i hit x and the caps lock light is always on....thank you

    I cant use the X key on my imac wired keyboard, the key viewer shows the two commands keys pressed when i hit x and the caps lock light is always on....not really sure what happened, but i didnt do anything different from my daily stuff
    just an update....when i hit the right command key it respond normal (cmd v cmd c...etc) but when i hit the left command key it shows the x and two commands pressed as well as it delete what i'm working on i.e like backspace but takes out everything at once
    thank you

    Hi Moe,
    Sounds mostly likje a bad KB, do you have another to test with?
    Or...
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or some USB or Firewire device, or 3rd party add-on, Check System Preferences>Accounts (Users & Groups in later OSX versions)>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

  • Caps lock and left command keys not working / unresponsive. Help!

    Just happened today. I admit due to exhausted I have been neglecting to turn off my laptop and it ends up getting the comp battery drained. I have a 2011 Macbook Pro. I checked the keyboard > Show Input Viewer, only caps lock and the left command keys are not working. Please help!! Is my laptop dying? Is there a way to fix this via terminal?
    Thanks in advance!

    Keyboard Doesn’t Work
    Keyboard Keys Do Not Respond

  • Remap Left and Right Command Keys as Different Buttons?

    Hello,
    I'm suffering from the dreaded emacs pinky (yes, I've already changed the caps-lock key to ctrl) and I want to know if it is possible to set the left and right command keys to different options.
    For example, to keep the right command key as command, but have the left function as ctrl.
    Thanks for any help.

    I think the answer is the same as last year.  Don't know of any way to do that.
    Captfred

  • Command key doesn't work in several usual function.

    command key doesn't work in several usual function.
    Selected object does't change to transform mode by hold down command.
    and "command+2= lock the selected object " doesnt work as well..
    but, these shortcut is still ok. 
    command + c,v
    command + a
    command + select tool = whole select tool
    that is, the command key is not totally stopped.
    Im cs5 but I have had this trouble in cs4.

    causiu,
    It is possible that the issues may be caused by preference corruption or interference from other applications.
    You may try the following (you may have tried/done some of them already) and see whether it helps. Since you had it in CS4 too, the most likely is 5).
    1) Close down Illy and open again;
    2) Restart the computer;
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (irreversible);
    4) Move the folder with Illy closed (reversible);
    5) Look through and try out the relevant among the Other options, especially Item 7) with the usual suspects;
    Even more seriously, you may:
    6) Uninstall, run the Cleaner Tool, and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • Keyboard Problems, Control-Option-Command Keys Don't work

    Hello and thanks.
    Have a iMac 2.4ghz Intel Core 2 Due with 2GB of RAM running 10.5.8 and suddenly the control-option-command keys are not working on my keyboard.
    Working fine and then suddenly no keys on my last row worked, including space bar. Scoured message boards and tried all fixes. Substituted keyboard with wireless (known working) and usb (known working) with limited results.
    Initially the last row of original keyboard didn't function at all and command keys seemed locked so couldn't type. Only did modifier key functions (open, close, find, et.c)
    The two different keyboards, wireless and USB, typed but the control, option and command keys don't work. Space bar works and the command key no longer locked.
    Things I have tried:
    1. Checked Universal Access settings so no sticky keys, etc.
    2. Check Speech settings, all correct.
    3. Replaced user, universal access prefs from point of which keyboard worked, no change.
    4. Cannot zap PRAM due to no working option or command keys.
    5. Reset SMU. Caused fans to go high speed. Unplugged computer from wall. Waited 10 seconds, replugged, fan now normal.
    6. Repaired permissions.
    7. Tried to repair disk but operation failed in middle of scan. Won't mount from any bootable CD.
    Currently the wireless keyboard works fine except I have no control-option-command key usage. Keyboard types fine and all other keys work fine.
    Suggestions? I'm very frustrated.
    Thanks in advance,
    Annie

    Upgraded to 10.6. Problems resolved.

  • I can't order more than one picture at a time in iphoto.  I am holding the command key down and highlighting two but only the last one is showing up

    Hi,
    I need help placing an iphoto order online for prints.  I have a few pictures I want in a few sizes and it seems to only allow me to select one at a time.  I have held the command key down but it defaults to the last picture i selected.  I appreciate your help.

    What system and iPhoto versions are you using?  As a quick test try this:  launch iPhoto with the Option key held down and create a new, test library.  Import some photos and check to see if the same problem persists.  See if you can get all of the selected photos in the order window as it should be.
    If you can't then try this:  make a temporary, backup copy (if you don't already have a backup copy) of the library and try the following:
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
         User/Home()/Library/ Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your
         User/Home()/Library/Caches/com.apple.iPhoto folder. 
    Click to view full size
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    OT

  • Mid 2011 macbook air. command key has popped off and is now missing the 2nd metal bar. can this be replaced?

    The command key popped off my mid 2011 macbook air. It is meant to have two metal bars but can't find the 2nd one. I have clicked it back into place but if I press the button at the bottom the top pops up and I'm worried that if I don't fix the problem I may end up losing the key altogether!
    Can you buy replacement metal bars? should I just remove the other bar completely?
    Thanks in advance.

    Sorry, must have been the crackpipe I smoked last night! LOL
    You won't see anything in the Application Support --> Bootcamp folder unless you have previously downloaded the Windows Support Software. Good find.
    ADDENDUM STEP:
    This step should be placed between 9-10.
    Open Bootcamp Assistant. Uncheck everything BUT, "DOWNLOAD THE LATEST WINDOWS SUPPORT SOFTWARE FROM APPLE". You will be prompted to burn the image to a CD/DVD or save to a USB Key. Save the image to a USB key. This will format your USB key properly in preparation for the files. The download commences and if you're lucky, the files will simply be saved to your USB key without having to manually copy them over to the key using the steps above.
    IMPORTANT - Even if the support software hangs when its being saved to the USB key, you should now be able to navigate to the directory and see the image. Follow the steps above.
    Apologies for missing this.
    Best,
    WBN

  • With Mavericks I have to hold command key down and double click to get a sub folder to open in a new window.  Can I go back to just double clicking ?

    With Mavericks I have to hold command key down and double click to get a sub folder to open in a new window.  Can I go back to just double clicking ?

    Of course. To do it, open a Finder window, go to Finder menu (on the menu bar) > Preferences > General, and untick "Open folders in tabs instead of new windows".

  • What is the default key command for the COMMAND key?I seem to have changed it somehow along the way and now when I push the command key it hides all windows or shows desk top I need to correct this as soon as possible-.any ideas?

    What is the default key command for THE COMMAND (apple) key? I seem to have changed it somehow along the way and now when I push the command key (only) it hides all open windows and shows the desk top and when I push it again it shows all windows again...I need to return to default A.S.A.P. just this one key...Any ideas? Thanks in advance...

    Go to
     > System Preferences > Keyboard
    Click on the 'Keyboard' tab and hit the 'modifier keys...' button. You can see and change the defaults there.
    As I'm not sure if all the labels are the same in Lion, he's a screenshot from Snow Leopard. It should be similar enough:

  • Is there a way to operate the command key using the mouse?

    I am working with a student who has limited movement of his hands. He is able to operate a mouse. However, he cannot operate the mouse and make key commands at the same time. Is there any way to adapt the mouse so command key actions can be carried out without pressing the key?

    Look inside System Preference "Universal Access" (or whatever even more politically correct name it is called now).
    There is a feature called "Sticky keys". That says that when you press the command key in a certain way, it stays pressed (It is "Sticky").
    There are also two and three button mouse devices that can be used readily on a Mac (including the "Mighty Mouse" with the little rollerball) that can register one, two, or three button operations.

  • How could I turn off the Command Key to Windows Key mapping in Remote Desktop for Mac 8

    I'd like to be able to turn the Command key->Windows key mapping off.  In this new app, whenever I use the Command key to initiate a Mac-side function, it registers a press of the Windows key within the Remote Desktop session.  Speaking only
    for myself, I use the Command Key for quite a lot of Mac operations, while my need and expectation for a Windows key press is zero.

    I'd like to be able to turn the Command key->Windows key mapping off.  In this new app, whenever I use the Command key to initiate a Mac-side function, it registers a press of the Windows key within the Remote Desktop session.  Speaking
    only for myself, I use the Command Key for quite a lot of Mac operations, while my need and expectation for a Windows key press is zero.
    Agreed. Cannot stop it by disabling the "Windows" key (from within Windows 7). Every time I Cmd-Tab to change apps, the Start Menu pops up,
    and persists, overlaying other app windows. Much more than annoying.
    Also, there is no Clipboard Sharing, apparently. Love typing in long binary strings into the Registry.

  • My command key on my macbook pro retina 2014 is sinking

    So I have recently bought a Macbook pro retina 13 inch 2014 model.
    I have been using it a lot lately especially for typing and using the command key. I notice that my left command key is sinking or in other words, the left command key is much lower or deeper than other keys if it is not pressed.
    Is this normal? I am afraid if I keep using this left command key it will be a problem in the future.
    Thanks.

    Sorry for bumping this OLD thread. But I am having the same problem. How did you guys exactly resolve it? What did Apple do when u went to the store? (Assuming you did)
    Thanks.

  • Command key shortcuts don't work anymore in Safari since upgrade to Yosemite!

    Hi,
    I recently upgraded the MacOSX to Yosemite. Since this moment Safari doesn't work properly anymore, because the command key shortcuts are out of order.
    Cmd + Q
    Cmd + C
    Cmd + V
    Cmd + X
    These are now the key shortcuts I've noticed that aren't working anymore. Other apps (a part from Firefox) don't seem to have these problems.
    In the meantime I have to use the mouse cursor and choose from the menu bar.
    Apple support wasn't able to help me! They just gave me the advice force quit Safari and restart it while pushing the ALT-key. Result: Nothing!
    Thanks in advance for your help.
    Kind regard,
    Steven
    MacBook Air
    Version 10.10
    1.3 GHz Intel Core i5
    8 GB 1600 MHz DDR3

    That is rather odd if they are all visible as shortcut commands.
    Here are some more tests to do…
    1) Disable all your Safari Extensions & retest (in Safari Preferences).
    2) Logout of the account (from the Apple menu). At the login window enter your password & hold shift as you click the login button. Keep it held until the Desktop has become usable. This disables 'User login items' - retest. Logout after testing.
    3) Try a safe boot… OS X: What is Safe Boot, Safe Mode?
    Does it still happen in safe mode? This disables third party extensions & some inessential Apple system extensions - things will not be normal, however the Mac should be 'functional', test as much as you can.
    Post the results of those here, it may give us a better idea where to look.

  • Problems with "v", "]", and command keys on the keyboard

    Hi,
    On my MacBook, pressing either the "v" key or the command key to the left of the space bar, without pressing the other one as in a keyboard shortcut, pastes what is currently on my clipboard. Pressing only the command key to the right of the space bar, and not the "]" key in combination, moves me forward in my web browser. When I do press the "]" key, nothing happens (I had to copy and paste the "]" and the "v" for this post). Obviously this is somewhat annoying as typing anything with these two symbols becomes a chore. I am still able to use other keyboard shortcuts, however, but in doing so the command key either pastes from the clipboard or, if I'm using a web browser, moves me to the next page in my history before completing the shortcut. How can I fix this? Thanks.

    Try resetting your SMC.
    Resetting the System Management Controller >>
    Try resetting PRAM:
    1. Shut down the computer.
    2. Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    3. Turn on the computer.
    4. Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    5. Hold the keys down until the computer restarts and you hear the startup sound (bong) for four times.
    6. Release the keys.
    If neither help, you could have a hardware issue with the keyboard.
    Dave M.
    MacOSG Founder/Ambassador  An Apple User Group  iTunes: MacOSG Podcast
    Creator of 'Mac611 - Mobile Mac Support' (designed exclusively for an iPhone/iPod touch)

Maybe you are looking for

  • Pscs6 wont open, Microsoft error message

    I downloaded the Photoshop CS6 trial verion yesterday and it worked great for afew hours, but I closed it and now every time I try and open it there's an error message "Adobe Photoshop CS6 hs encountered a problem and needs to close" what could have

  • How to Show a Model Dialog box in a JApplet

    I have a JTable in a JApplet. I need to display a JDialog box as a Model Dialog. The JDialog expects a Frame as parent. How do I create a Frame and show my own dialog box? without a parent Frame the dialog shows up as a Modeless dialog box. Any help

  • FIX on Sparse Dimensions.

    Hi, I know that FIX can be used on both Sparse as well as Dense Dimensions. But its more efficient when used on Sparse Dimensions. Is there any logic behind...? Coz the functionality of FIX is to restrict the dimensions and members, but why is it mor

  • .mov exif data problem - Time is off by 7 hours

    I import my photos and videos taken on my iPhone using "Image Capture", then I sort them using Adobe Bridge CS5. When I take a video (.mov file), the exif data shows the "Date Created" at 7 hours ahead of "Date File Modified". (ie: Date Created: 7pm,

  • Lightroom catalogue parent folder permissions issue

    Hi guys, Im having an issue with not only my 2011 Macbook Pro that crashed thanks to the infamous faulty Radeon graphics card but also with the task of opening my backed-up Lightroom catalogue from Time machine on a new Mac. I have 8 years of edits i