Is it possible to run a script when changing Yoga modes?

I'm currently working with a vendor of Restaurant reservation software and they have a customer that would like to implement the Yoga 13 for a chain of hotels. However, due to the fact that the software requires Silverlight, it's necessary to run a script so that they can use Google Chrome and have the software keyboard pop up automatically when a text field is entered or touched. 
I can easily run the script at login and manually unload it when done, but since Lenovo already has software (Lenovo Transition) that can trigger things when the Yoga changes modes, is there some sort of developer tool or a system-wide event that can be used to automatically load and unload the script on mode change?
Please let me know, some Yoga sales could depend on this....and I love the Yoga.

Well, I'm looking for a means to activate a script through the active corners, I'm not asking any questions about the script itself, so I did not think it should be posted in the AppleScript categoriy, but sure, I'll give it a go.
(New thread in AppleScript: http://discussions.apple.com/thread.jspa?threadID=2534773&tstart=0)
Message was edited by: Max Ocklind

Similar Messages

  • Launchd - can it run a script when users log in OR switch?

    I'm hoping to find someone who knows all the gory details of launchd. Here's the why and what: I'm trying to coerce Aperture into letting two users on the same computer share the same Aperture Library, both able to import photos and see and use what the other has done. Initially it is no problem, change the permissions so everyone has read/write/execute, put the Library in a common area, and point both person's Aperture at it. The problem is that Aperture changes permissions of things inside the Library as you use it, and especially when one person imports, the other person can't see that stuff.
    So I want to run a script whenever someone logs in or becomes the active user by fast user switching; the script will simply change ownership and permissions of the library and everything in it to restore full access.
    After days of research and testing, I made a test launchd plist file (this is the configuration file or agent that launchd looks at and runs your script when criteria are met). It sits in /Library/LaunchAgents/, here it is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>Label</key>
    <string>org.jim.test</string>
    <key>LimitLoadToSessionType</key>
    <string>LoginWindow</string>
    <key>ProgramArguments</key>
    <array>
    <string>/Library/Scripts/testscript.sh</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>StandardErrorPath</key>
    <string>/Users/jim/Desktop/test.err</string>
    <key>StandardOutPath</key>
    <string>/Users/jim/Desktop/test.out</string>
    </dict>
    </plist>
    The actual test script is sitting in /Library/Scripts/:
    #!/bin/bash
    echo "org.jim.test.plist was run at `date`"
    So if the plist is loaded and the script run, the date and time are written in the test.out file on my desktop. This thing runs great when a user logs in. The problem is, it doesn't run when users switch by fast user switching. In reading the documentation, it was vague about this, whether that could be done; I thought it could.
    Can anyone help with a way to get the script to run when any user takes control by any means? As an added complication, which I'll worry about later, the script has to run as root because it's the only way to get the ownership and permissions changed.
    Thanks,
    Jim

    BobHarris is the MAN. ACLs seem to have worked. I put the Aperture Library in /Users/Shared/ApertureLibrary, restored the regular permissions as best I could (me as owner, staff as group, 755), pointed each person's Aperture to the library, then proceeded with the ACL magic. First I created a group for my wife and I, called 'aperture', in the Accounts preference pane. That was to simplify the ACLs (one entry instead of 2) and so that other users (son) aren't able to muck it up.
    It took one stinking Terminal command (note that 'aperture' at the beginning of the quote is the group, not the program, folder or library):
    chmod -R +a "aperture allow list,addfile,search,delete,add_subdirectory,delete_child,file_inherit,directoryinherit" ApertureLibrary.aplibrary
    I was unsure whether this list of permissions was necessary or sufficient, but it seems to have worked so far. Both users can access the library. I imported a different picture by each user, and the other user could then see and delete the picture imported by the other. This was not possible before.
    Bob, thanks for the great idea. After a little more testing I'll post a complete how-to in the latest "how do we share Aperture" thread, and give you due credit. The bad news is all the launchd fun is over
    Jim

  • Is it possible to run a script through active corners?

    Is there any way or app that allows me to run a script when moving the mouse pointer to an active corner (the ones otherwise used by Exposé)?

    Well, I'm looking for a means to activate a script through the active corners, I'm not asking any questions about the script itself, so I did not think it should be posted in the AppleScript categoriy, but sure, I'll give it a go.
    (New thread in AppleScript: http://discussions.apple.com/thread.jspa?threadID=2534773&tstart=0)
    Message was edited by: Max Ocklind

  • [b]Possibility to run 9iAS for OCS in clustered mode[/b]

    Possibility to run 9iAS for OCS in clustered mode
    Hi,
    we're using two nodes of 9iAS in two data centers. We've been told that it isn't possible to add the 9iAS to a 9iAS cluster. Does anybody has experience to use two nodes of 9iAS of OCS2 as cluster with load balancing and automatic configuration deployment functionality?
    Any help would be welcomed...
    Kind regards,
    Tobias Hitzfeld

    You can use RAC for the databases but the infrastructure is only supported with HA CFC (Cold failover Cluster). You can look at the document for this in this location.
    http://otn.oracle.com/products/ias/hi_av/content.html

  • Is it possible to run a command when a monitor goes to a healthy state?

     
    Hi,  I'm using SCOM 2007R2
    Is it possible to run a command/script when a web application Monitor changes to a healthy state?
    I have a web application monitor that checks four different websites from our proxy servers.  on the aggregate rollup of all four sites I have a health rollup policy of 'Best state' meaning
    that the monitor will only go critical if all four sites are unreachable. If that happens I have a Diagnostic task that runs to Stop the w3svc service.
    This stops the proxy server serving ‘Page cannot be displayed’ content to the users within the company.
    What I would like to do is start IIS automatically when the web application monitor goes to a healthy state.
    I’m guessing I’m going to need a script that perhaps pings the sites every few minutes then starts the w3svc service if it gets a result.

    Hi,
    I recommend you touch the Orchestrator, Orchestrator can integrate
    SCOM.
    Use Orchestrator to design a Runbook for your task. When the state of a web application Monitor changes to healthy, then run a command/script.
    System Center 2012 Orchestrator.
    Orchestrator is a workflow management solution for the data center. Orchestrator lets you automate the creation, monitoring, and deployment of resources in your environment.
    For more information, please review the link below:
    System Center Integration Pack for System Center Operations Manager 2007 R2
    http://technet.microsoft.com/en-us/library/hh531770.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Have terminal NOT run a script when it loads

    I recently wrote a basic shell script and saved it as a .command file to run from the desktop. Since then, whenever I open the terminal it automatically runs the script then exits the terminal. If I hide the file (mv pt-noplugs.command .ptnoplugs.command) it simply opens the terminal and closes it immediately. I have tried changing the default shell from bash to something else but this doesn't seem to make a difference. I also don't seem to have a .bashrc file when it normally is /home/user/.bashrc (I'm used to linux). Any help would be appreciated. Below is the script:
    # Shell Script to start Pro Tools HD with no waveshell Plug-In
    echo "*"
    echo "* Script: pt-noplugs.command"
    echo "* Please Leave This Window Open Until ProTools Has Exited"
    echo "*"
    # Move waveshell Plug-In Files to Plug-Ins (Unused)
    cd "/Library/Application Support/Digidesign/Plug-Ins/"
    mv -v Waveshell-DAE_5.9.1.dpm "../Plug-Ins (Unused)"
    # Start Pro-Tools
    /Applications/Digidesign/Pro\ Tools/Pro\ Tools\ HD.app/Contents/MacOS/Pro\ Tools\ HD
    # Restore Plug-Ins directory
    cd "../Plug-Ins (Unused)"
    mv Waveshell-DAE_5.9.1.dpm ../Plug-Ins
    echo "*"
    echo "* Thank You. This Window May Now Be Closed"
    echo "*"
    exit

    I forgot to add: when I login as a different user and load terminal is does NOT run the script mentioned before.

  • Run a script when folders are deleted?

    I'm just playing with idea I was thinking of have a Plist in the launchd folder so that when the certain folders of the desktop are deleted it would run a script to collect information about the folders that were deleted.
    Folders begining with FR and DO are moved to the trash by user, then
    get number of items in each of the folder and write to a CSV file.
    I just need something that will reconise the items moved to continue the rest of the script.
    Any suggestions please?
    Its actually to link it to this script that is a work in progress.

    maybe something close to this?
    tell application "Finder"
              set hotFolder to folder "Hal 9000:Users:matthew:Desktop:HotFolder"
              set keyFolder to folder "Hal 9000:Users:matthew:Desktop:Keywords"
              --The above 2 folders will always exist if there are no other folders exist on the dektop then run the rest of the script else do nothing.
              if (exists (only folder hotFolder and keyFolder)) then
                        display dialog "Only these Folders exist"
                        else
                        display dialog "Other folders exist!" 
              end if
    end tell

  • Run a script when DND is on

    I saw that Messages.app has an AppleScript handler and I thought about making a script to change my status to "Away" or "DND" when Do Not Disturb feature of Notification Center is on. But I don't know how to "talk" to AppleScript regarding the DND feature of NC. I used AppleScript once or twice for simple tasks when I told Finder or Mail to do something simple, but now I don't know how to do this.
    I think that the "pseudocode" should be something like
    tell application "Messages" to (if DoNotDisturb is ON set status to "Away")
    but I don't know how to make it understandable by AppleScript. More precisely, I don't know how to refer to the DND state of Notification Center.
    Any help well appreciated. Thanks.

    Hi,
    If you Open AppleScript Editor you can use the File Menu to Open Dictionary.
    You will get a window full of the apps and items that have AppleScript Dictionaries.
    From here I opened the System Preferences one (There seemed to be no Notifications one)
    I looked at the two sets of items (Standard Suite and System Preferences).
    The second seems to be the one to use.
    It seems you could get AppleScript  to reveal the Panes and the Anchors as they are called within the pane.
    However when I try:-
    using terms from application "System Preferences"
        reveal pane
    end using terms from
    I get an error message.
    At this point my skills at AppleScript are exceeded to know what to do next.
    Aside from that Messages 7 (Mountain Lion) and earlier iChat version had an Alert section to the Preferences.
    These had seventeen different actions of things that could be set such as Buddy Coming On-line (Available), Messages Sent and well as th Message Received that is now in the General Section.
    You could set Sound, Dock icon bounces and Applescripts to each of these.
    I had two;  the first was set for AV Chat Started which changed the Status Message and the Input and Output volumes and the second for AV Chat Ended which said I had been busy but was no longer and changed the volume back.
    I would have to run these as External Scripts (not set in the option you describe) but I have not down this yet.
    I don't think the current option can be set to anything other than Message Received and you want to do things to the Status Message before then, control be an event in another app.
    10:14 pm      Saturday; January 25, 2014
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • Is it possible to run a script through an action without adding them to a menu?

    Unlike with Photoshop, you can record an action to run a script from a path. With Illustrator, it seems that you can only insert menu item to run an "Other script", but it doesn't record the path, and isn't of much help. Yes, I can add this to the script menu, but I'm creating scripts for a group of people, and I didn't want to have to install anything on their local machines, other than an Action Set. Are there any alternatives?

    Nope, AI still won't remember paths to Scripts between restarts. Has been this way for at least 8 versions now so don't hold your breath for it to change.

  • Is it Possible to Run SQL Script from Java prog

    Hello
    Is there any API by which we can run SQl Script file ,
    Just by giving database configration parameters and SQL Script file Path ,it will execute that script automatically

    You can excute SQL statemetns throught JDBC, but that doesn't have a facility to read those statements from a file. You'd have to write code to read the file and create and execute statements through JDBC. That should be pretty straightforward though.
    It's conceivable that there's a third party library out there that does it, if you know what to look for.
    If you're not familiar with JDBC, check out http://java.sun.com/developer/onlineTraining/Database/JDBC20Intro/

  • Running nested scripts in "Display only mode"

    Hi,
    I have a deployment script that calls scripts nested. Is it possible to run these having e.g echo set on in order to display everything being executed, without actually executing it against the database?
    Hope my question makes sense
    Regards
    Peter

    What you could try is to disconnect before running them, then each statement will failed with "Not connected"
    disconnect
    set echo on
    @c:/download/utlsampl
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.8.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.8.0 - Production
    SQL> set echo on
    SQL> @c:/download/utlsampl
    SQL> DROP TABLE LSC_EMP CASCADE CONSTRAINTS;
    SP2-0640: Not connected
    SQL> DROP TABLE LSC_DEPT CASCADE CONSTRAINTS;
    SP2-0640: Not connected
    SQL>
    SQL> CREATE TABLE LSC_DEPT
      2  (
      3     DEPTNO INTEGER constraint DEPTNO_NOT_NULL NOT NULL,
      4     DNAME  VARCHAR(14),
      5     LOC    VARCHAR(13)
      6  );
    SP2-0640: Not connected
    SQL>
    SQL> alter table LSC_DEPT add constraint DEPT_PRIMARY_KEY primary key (DEPTNO);
    SP2-0640: Not connectedHTH
    Laurent

  • Is it possible to write a script that changes swf export settings?

    I want to be able to export a swf file that uses a different text anti-alias setting. Is it possible to create a script that can set and export a swf file to my specifications?

    function(){return A.apply(null,[this].concat($A(arguments)))}
    Is it possible to create a script that can set and export a swf file to my specifications?
    It seems there isn't. A script cannot add basic functionality, only access it. In this case, you can't change the setting because there is no 'antialias text' setting in the SWF export settings.
    However, all is not lost. Google turned up this helpful page; it might be possible to edit your SWF after exporting and then re-save it.

  • How can I run a script when an application quit??

    Greetings all,
    I'm trying to write a script, which can be triggered automatically (to do some stuff) at the time when a given application quit. I was playing around with this test script, taking "TextEdit" as an example - it just prints a message when TextEdit exits.
    ==========================================
    +*set targetapp to "TextEdit"*+
    +*tell application "System Events" to set rr to name of the processes*+
    +*--if targetapp is not in rr then*+
    +*-- tell application targetapp to activate*+
    +*-- tell application "System Events" to set rr to name of the processes*+
    +*--end if*+
    +*set rr1 to rr*+
    +*repeat until rr1 ≠ rr and targetapp is not in rr1*+
    +*tell application "System Events" to set rr1 to name of the processes*+
    +*do shell script "sleep 1"*+
    +*end repeat*+
    beep
    +*display dialog (targetapp & " is not active anymore !") as string buttons {"OK"} default button 1 with icon 0*+
    ============================================
    Unfortunately, it seems to work if I launch TextEdit using the script itself; it doesn't work with first +*"if - end if"*+ block commented out. Does anyone know how can I achieve this? Any help or suggestion greatly appreciated. Cheers!!

    Hi santanu,
    I'm sure you can use a variation of this application of mine to do what you want. It monitors all running processes and then reports when one closes.
    --initialize previous_processes
    global previous_processes
    tell application "Finder"
    set previous_processes to get the name of every process --use "whose visible is true" to remove the background ones
    end tell
    --monitoring script
    on idle
    tell application "Finder"
    set current_processes to get the name of every process
    end tell
    set numberofprocesses to count of items in previous_processes
    set counter to 1
    repeat while counter is less than (numberofprocesses + 1)
    if current_processes does not contain item counter of previous_processes then
    display alert item counter of previous_processes & " quit!"
    end if
    set counter to counter + 1
    end repeat
    set previous_processes to current_processes
    return 1 --runs every second...can be changed
    end idle

  • Is it possible to run a script each time a .CSV file is updated?

    I am having trouble with a script I am trying to write, which is made up of two parts:
    A .CSV file generated by PHP/MySQL whenever an RSS feed is updated. The contents of the .CSV are overwritten each time the PHP runs.
    A DataMerge script, written in JavaScript.
    What I would like to do is run the DataMerge script each time the .CSV file is updated. Is this possible, perhaps using an Event Listener within the PHP to trigger the DataMerge script? Or am I approaching this in the wrong way? I'm grateful for any thoughts you might have. Thanks, F.H.

    I would use Rorohiko's APID ToolKit: http://www.rorohiko.com/wordpress/indesign-downloads/active-page-item-developer/
    It has fileChanged event that is sent after the observed external file has changed.
    sorry guys for "labouring the point", but I'm working on very advanced project - and I need to know what my tool can or can't do
    and in this case - using APID will break point 2.3 of EULA, right ? interaction with external datasource - without user action ?
    robin
    www.adobescripts.co.uk

  • Is it possible to trigger a script when a file is opened.

    I have a simple script that I need to run when a file is opened in illustrator(cs5) on windows 7. I tried adding the script to the "startup scripts" folder but that only executes when a new instance of illustrator is started. If illustrator is already open and I go to "file/open", the script doesn't run. Any suggestions?
    Many thanks,
    CRS

    Thanks for the follow up. I think the real solution is training our artists to pay more attention to their work. Some of our artists were saving their files in RGB color mode instead of CMYK which was obviously causing color problems. I was wanting a script to check the color mode of each file upon 'open' and notify them if it was in RGB, but truthfully they should be paying more attention and catch the problem before the art is sent to production. A work-around like that wouldn't solve the real problem anyway.
    Thanks again,
    CRS

Maybe you are looking for

  • Can't install FCP 5

    I just purchased a new MacBook Pro and was getting ready to install FCP 5 (and later upgrade to 6), but when I click on the installation icon I get this message: " You can't ope the application Final Cut Studio.mpkg because the PowerPC applications a

  • How do I change the download files to be the name of the sending file and NOT ViewAttachment?

    I started to access my Charter email via Firefox. The names of attachments (Microsoft WORD, PowerPoint and .txt files) appear correctly. However, when I choose to download and save the attachment, the real name is changed to Viewattachment(n) where n

  • Clarification on IDOC flow from XI to R/3 system

    Hi   After successful syndication it will create XML which will be taken by XI and push to R/3 system. If am facing some issues in R/3 Inbound IDOC processing, how do I track the same in XI ? or is there any alternate kindly advice. thanks in adv Ale

  • Multiple sender - Using BPM

    Hi, I have 4 file senders to send message of same structure to BPM to process it. There is no corelation between the messages. But I am wondering, will it work, if I add multiple receivers using fork step and initiating each one as 'start process'? C

  • Get Sequence's Enabled Audio Sources From Player Plugin

    Hi, I'm a video editor with some limited programming experience and I've been exploring the possibility of expanding on Premiere Pro's feature set. Nothing fancy or 3D just adding functionality. Specifically I'm looking to add the ability to playback