How to incorporate Command,Option,Shift and Control keys into AppleScripts?

How do I incorporate Command,Option,Shift and Control keys into AppleScripts?
for example:-
If Control key is depressed then
do something
elseif Option key is depressed then
do something else
end if
Lennox

I am trying to do this:
tell application "Finder"
set cv to current view of Finder window 1
if ( option key down of theEvent ) then
set current view of Finder window 1 to list view
elseif ( control key down of theEvent ) then
set current view of Finder window 1 to column view
else
set current view of Finder window 1 to icon view
end if
end tell
but since I am not quite familiar with this I am not getting it right
Any suggestions?
Thanks.
Lennox

Similar Messages

  • Photoshop CS4 or 5 curves command-option-shift click

    Back in the day, if you did the combination of command-option-shift click while in the curves adjustment window, it would mark those points on all channels so you could then make adjustments to that one place. That seems to be gone. Is it? Is there a replacement? That click/drag curve point is not what I'm needing.

    Open Curves panel.
    Activate Targeted Adjustment Tool (the little finger thingy).
    Command-click on image places a point on the active curve.
    Shift-command-click places points on the all of the color channel curves.
    Cycle through channels:
    Option-2 for composite channel
    Option-3, 4, 5, 6 (if CMYK) for individual color channels.
    Takes a while to get used to, but it's the reality now. You'll get used to it.

  • Swapping Function and Control keys on a Lenovo Laptop

    Lenovo laptops reverse the usual positions of the Function and Control keys (see this photo). It seems like a minor problem, but it is very frustrating.
    How can I swap these keys? I have tried various xmodmap configurations (some based on the examples provided in the manual and some based on this eerily similar question), but nothing seems to work.
    Additional information
    Fn keycode: 151, Fn name: XF86WakeUp
    Left Control keycode: 37, Left Control name: Control_L
    Thanks in advance, best community ever.

    keenerd wrote:Ponder why you got a Thinkpad, then (optionally) swap them back.
    Free laptop from work. The hardware interface isn't great, but I'm not complaining. :-)
    Anyway, that worked beautifully. Thanks for the tip!

  • Can I swap the Function and Control keys?

    Is it possible to swap the Function and Control keys?

    With limitations; yes. Go to System Preferences and select Keyboards & Mouse and add your choices. Keep in mind that such chances will affect all well intended Apple commands and may end up driving you crazy!
    Regards,

  • HT5636 swap 'fn' and 'control' key

    one question that has been flying around but not able to get the answer is... how to swap 'fn' and 'control' key in macbook pro (in Windows 7 bootcamp). I believe this should be done from the bootcamp driver

    hehe just found the solution to yiour problem. took me only a night to find http://samartzidis.github.io/WinA1314/ << Enjoy!! . Scanned with AVG so the file is safe.

  • How do I get my photos and music back into new version iTunes from my iPad?

    I have the new version of iTunes (11 0 2 26) for Windows which installed over my old copy. I see none of my music etc even after it claims to have synced and backed up. How do I get my photos and music back into iTunes from my iPad? It syncs OK with calendar and contacts from Outlook and I can force copying of apps and books but why does it not show music and photos in the iTunes library? help please.
    David

    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping.  Note that in iTunes 11 an "empty" library may show your past purchases with links to stream or download them.
    In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    Alternatively, depending on exactly when and why the library went missing, there may be a more recent .tmp file in the main iTunes folder that can be renamed as iTunes Library.itl to restore the library to a recent state.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    Should you be in the unfortunate position where you are no longer able to access your original library, or a backup of it, then see Recover your iTunes library from your iPod or iOS device.
    tt2

  • How can i add the dimensions and data loading into planning apllications?

    Now please let me know how can i add the dimensions and data loading into planning apllication without manuallly?

    you can use tools like ODI or DIM or HAL to load metadata & data into planning applications.
    The data load can be done at the Essbase end using rules file. But metadata changes should flow from planning to essbase through any of above mentioned tools and also there are many other way to achieve the same.
    - Krish

  • Can any one tell me how to include the company logo and some poictures into the Teststand report

    1. Can any one tell me how to include the company logo and some pictures into the Teststand report?
    2. How to include the waveforms into the report?

    http://zone.ni.com/devzone/cda/epd/p/id/3619
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~

  • HT1918 how can i remove my billing and change it into a free apple id user?

    how can i remove my billing and change it into a free apple id user?

    iTunes Store: Changing Account Information
              http://support.apple.com/kb/HT1918
    Select None under your payment method.

  • TS3048 I have just purchased a new apple cordless keyboard.  The numeric line of keys along the top are not functioning as they should.  For example I am unable to get a question mark or a forward slash.  I have tried holding down both shift and alt keys.

    I have just purchased a new apple cordless keyboard.  The numeric line of keys along the top are not functioning as they should.  For example I am unable to get a question mark or a forward slash.  I have tried holding down both shift and alt keys.

    Thanks for prompt response - I tried what you suggested but I'm afraid it has not helped.  It seems as though the line of number keys along the top aren't actually doing what is printed on them.  Some are OK, but the further towards the right hand side of the keyboard you go, the less predicatable it becomes.  So whilst the second key from the left gives me 1 and ! when holding the shift key, by the time I get to the 6 when I press and hold shift I get ^ rather than & symbol which is what is actually printed on the key.  The & symbol is actually on the next key along - and when I hit the key with 8 I get * rather than the ( which is printed on they key but actually located on the next key along.  Things get even more muddled by the time I am over on the right hand side as rather than a question mark (I have had to type the word as I cannot find the symbol anywhere!) I get this _ and the other symbol marked on the key is a comma, but I get - instead.  It is going to drive me mad if every time I want to type something it is a guessing game....!  What do you suggest - question mark

  • Switch the function and control keys

    Sounds like a stupid request but my life would be much simpler if my Lenova T540p keyboard had the function and control keys switched. I use the control key ALOT and having it to the far left hand lower corner would be awesome.
    Thank you.
    R

    Hey there Redrabbit,
    Try your BIOS. For me (Thinkpad T540p), it's in Config>Keyboard/Mouse>Switch FN and CTRL keys.

  • How to embed the Word Document and PDF file into Crystal report?

    How to embed the Word Document and PDF file into Crystal report?
    I have word doc which having 10 pages. I need to show all of the 10 pages at a time. I tried OLE object but problem is it shows only one page.
    Is there any solution to show word doc / PDF file in CR?

    Symptom :
    When embedding a pdf document into a Crystal Report, only the one page shows.
    Reproducing the Issue
    Environment:
    Crystal Reports OLE object
    Cause
    An OLE object only displays the first page.
    Resolution
    Embed multiple objects, one for each page
    Or
    Use a hyperlink to the object instead
    Hope this helps!
    Regards,
    Vinay

  • How can I swap the Fn and Ctrl keys on ideacentre b550 touch?

    How can I swap the Fn and Ctrl keys on ideacentre b550 touch?

    The BIOS feature that you request already exists.
    1.  reboot the computer
    2.  press F1 to enter BIOS setup
    3.  config -> keyboard/mouse -> Fn and Ctrl Key swap

  • Want to swap FN and CONTROL keys: Hope of BIOS support?

    I hate the Lenovo placement of the FN key where most systems have Control.  I've experimented with operating system changes to remap keys, but these have failed. In the Ubuntu Linux email list, people contend the swap of the FN and Control must be made in the BIOS because of the way the FN key functions.
    If you know of a software method to swap the FN and CONTROL keys, please tell me.
    If you have any information about using the BIOS to do that, please tell me.
    PJ

    Welcome to the forum!
    Although enabling this swap in BIOS has been a wish expressed by many new users coming to the ThinkPad world, no BIOS currently supports it.
    Hope this helps.
    Cheers,
    George
    In daily use: R60F, R500F, T61, T410
    Collecting dust: T60
    Enjoying retirement: A31p, T42p,
    Non-ThinkPads: Panasonic CF-31 & CF-52, HP 8760W
    Starting Thursday, 08/14/2014 I'll be away from the forums until further notice. Please do NOT send private messages since I won't be able to read them. Thank you.

  • [svn:osmf:] 15449: Add example showing how to inject a live NetConnection and/ or NetStream into a VideoElement.

    Revision: 15449
    Revision: 15449
    Author:   [email protected]
    Date:     2010-04-15 12:57:20 -0700 (Thu, 15 Apr 2010)
    Log Message:
    Add example showing how to inject a live NetConnection and/or NetStream into a VideoElement.
    Modified Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/AllExamples.as
    Added Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/netconnection/
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/netconnection/SimpleNet ConnectionFactory.as
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/netconnection/SimpleNet Loader.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

Maybe you are looking for