Script to open an app when a USB stick is inserted

Can someone help me write an Apple Script that will open a specific app when I insert my USB memory stick?
Cheers

Have a look here for an app that will do exactly as you wish: http://www.azarhi.com/Projects/DSW/
+Do Something When is a system preference pane that allows the user to watch for drives mounting and un-mounting, allowing them to launch or quit applications, whenthese events happen. You can launch iTunes when your music hard drive gets mounted, you can quit iTunes when you eject the drive. This is just an example of what can be done.+

Similar Messages

  • My ipod won't open the apps when i click on them?

    My ipod won't open the apps when i click on them, i've restarted my ipod multiple of time, closed everything that's open, and they are still not working, but i get the notifications through, please help!

    Try downloading and installing another free app from the App Store.  This has resolved the issue for a number of users.  Otherwise, you may need to try and restore your iPod from a previous backup via iTunes.
    B-rock

  • Preview won't open JPG image on a USB stick.

    Preview won't open 'JPG' images downloaded from a USB stick. I get this message, "The image"IMG_0091.JPG" could not be opened"  It may be damaged or use a file format that Preview doesn't recognise.
    I can see the thumbnail, but they won't open. Can I change this in some way? And, no, I can't download them again as I have erased them from the memory card, but they are saved in iphoto. 

    You can try deleting the .plist. Quit Preview first.
    https://discussions.apple.com/message/18762411#18762411

  • TS1363 how to save ipad apps to a usb stick?

    Ho do I transfer ipad apps from itunes library to a usb stick?

    Thanks for the information.
    Then, the problem becomes where I get this "USB Storage Support". Search in the NI site doesn't tell me much other than something related to LabVIEW Communications System Design Suite. Is that what I need? I am not sure if I have it. If it is not easily available, another option can be using a CompactFlash card as long as I know the file path to use. Thanks.

  • Need help with easy script for open / close app and move files

    Hi,
    I'm not a scripter.. never done anything special perhaps more complicated than /shutdown -s on cmd..
    I actually learned ASCII C language on university but never used it in real.
    I'm trying to create a basic script that perhaps you could help me or guide me how to do it..
    The commands are
    1) Close a running app (end task it or force kill it, I prefer end task it)
    2) delete files from x location
    3) run .exe app from y location
    4) close that running app 
    5) move files from z to y
    Perhaps adding few "wait few seconds" commands in between each, so the apps will launch successfully..
    My first question will be whats the easiest script language to do that?
    I tried VBScript but couldn't find commands for open or close apps.. also for controlling files..
    And what commands can do that? I could google them up for better understanding no need for rough guide
    And lastly, does it too hard? If it takes more than hour to make it (learn and process) than it ain't worth it..
    Thanks alot ahead!
    Jordan.

    hmm 2 questions:
    1) taskkill.exe causing me access deny error.. I used "taskkill.exe /IM softwarename.exe"
    how do I get permission or something to fix that?
    2) on the "move" command..
    First, its a "copy" instead.. but I easily figured that out.. 
    but more important is that I want to copy a folder.. with unknown list of way too long files and sub folders..
    and all I see is ability to move a file..
    Is this possible?
    Thanks

  • Xcode Open my App when Its Icon is clicked?

    I made a simple app using xcode, but it has one issue.
    When I close its only window, I can't open it again. If I click the icon, nothing happens. How do I make it so the window opens every time I click the icon in the dock?
    Thanks

    Assuming your window is not released when it is closed, you can add the applicationShouldHandleReopen:hasVisibleWindows: method to your AppDelegate and bring your window back to the front - for example (mainWindow in the following is an outlet to your main window):
    on applicationShouldHandleReopen_hasVisibleWindows_(theApplication, flag)
       mainWindow's makeKeyAndOrderFront_(me)
       return true
    end applicationShouldHandleReopen_hasVisibleWindows_

  • Alert box opens behind app when 'always on top'

    I currently have widget-like AIR app which has the option to
    stay on top of other windows. It also has slideout 'windows' (DIVs)
    with an iframe in it (for the php part). When one is open and 'on
    top' has been selected, the alert box (javascript) is displayed
    behind that window, so users can't click on ok or cancel to delete
    items. I can't make the window smaller either.
    Does anyone know how to force the alertbox to display on top
    of the widget?
    Thank in advance
    Stefan

    Hi,
    Here you go - in the meantime stick a pin in one of the
    developers, they should be able to control this behaviour via the
    application rather than expecting users to work with freeware - BTW
    this is freeware so all the freeware caveats apply (e.g. watch out
    you rarely get something for nothing).
    http://www.snapfiles.com/get/deskpins.html
    'DeskPins allows you to keep any window on top of others with
    a few clicks. While many programs offer this as a feature, others
    do not, and in such cases DeskPins comes handy. In addition, you
    can also define rules that use the window title (with wildcard
    support) and can automatically keep any window on top that matches
    your rules. The `on top` window is marked with a colored pin that
    can be quickly removed by simply clicking on it, returning the
    window to its normal state. '

  • I can't open any app when I turn the computer on. Mouse has batteries and the screen freezes on 1 app (BBCiplayer) , which obviously is the cause. How can I get rid of this app?

    When I turn on the iMac the screen and apps appear as always. However there is 1 app ( BBC iplayer Desktop) which seems to freeze everything. The mouse works OK but when I click on any app or on the apple logo, nothing happens. I can't even turn it off. What should I do?

    sarahfromsant cugat del valles wrote:
    Thanks very much for this answer. I'll try now but just want to check a couple of things before going ahead. I understand that I should do the following:
    - turn off at back with the power button.
    - turn on again and as soon as the start up tone sounds I press the shift ket ( the arrow key on left?).
    - release key when the GREY PROGRESS BAR appears.
    THEN follow noondaywitches instructions:
    Then go to System Preferences > Accounts > login Items and remove the iPlayer launcher.
    Then restart as normal from the Apple menu.
    I've edited your post to clarify what you need to do.
    Assuming it starts up correctly and normal service is resumed you may then want to permanently delete BBC iPlayer (there's nothing worth watching anyway )

  • Opening an app when opening another?

    hi. i want tp automate an app to open everytime i open another.
    is this possible?
    cheers

    One possibility is to use Automator to make a little application which launches both of the desired applications.
    Open Automator in your Applications folder and then select "Help".
    charlie

  • AIR: allow scripted window.open popup windows for specified sites ?

    I'm adding desktop interaction to an existing webapp using AIR.
    The webapp allows portlets to be undocked into their own window using a scripted "window.open" call.
    When running the webapp in AIR, the "window.open" call is blocked (window ref returned is "undefined").
    Presumably AIR is detecting the invocation of "window.open" isn't directly linked to the mouse click event.
    With a "standard" browser, you can configure the popup blocker to allow popups for urls specified as Exceptions.
    Is there a way to do this in AIR ?  (either by config or by overriding one of the AIR classes).
    I've looked at using a custom HtmlHost but the popup blocking occurs before the HtmlHost.createWindow () call

    I couldn't find a way to customize the pop-up blocker in AIR.
    I tested the same thing with Safari 4.0.5 (AIR uses WebKit 4.0.3) and got the same result.
    After some testing I found that changing the Javascript to ensure that the event was bound to "onClick" fixed it (previously was bound to "onMouseDown")

  • Problems opening apps when connected 2 USB port and after

    I'm having some problems with my new iphone 3g S... the time I connect my iPhone 2 a USB port it starts charging and sync all my content. The problem is that after the synchronization, when connected and after I disconnect it, I just can’t open any applications I installed! When I try 2 open any apps, the app just blink (the initial screen from the app is shown in half a second) and then it just closes by itself… Am I missing anything here? I find that really weird… I appreciate your help!

    Try this: Connect iPhone to your computer. In iTunes on your computer, deselect one of apps to remove it from your phone & sync. This should remove the app from your phone. Now delete the app from iTunes on your computer. Download the app from iTunes on your iPhone & resync. This should put a clean version of the app back on your computer. Hope this helps.
    Message was edited by: James Acomb1
    Message was edited by: James Acomb1

  • Using Automator to change System Preference when opening an app

    Hello everyone,
    I have been using a Mac for a good 8 years now and I'm a happy user. I recently found out about Automator ('hey what is this little robot for?') and what it can do, yet I lack the knowledge of finding out what I must do to make a script to perform the following thing:
    When I launch an app (FL Studio), I want the box checked next to 'Use F1 and F2 as standard function keys' in the Keyboard preferences pane in the System Preferences app.
    When I close the same app (FL Studio), I want the box unchecked next to 'Use F1 and F2 as standard function keys' in the Keyboard preference pane in the System Preferences app.
    I have found several other topics about this subject, however, those were about scripts when logging in to your computer, and not upon opening/closing an app. Please note that I am seeking for the setting to be changed when the app is opened and closed.
    I hope you can help,
    Sander

    This kind of question comes up a lot - how to run a script when an application launches/quits.
    The short answer is that it's not easy to do directly, unless the application itself supports launching scripts on startup/quit (hint: few do).
    Fortunately, a little difference in thinking can give you the same effect.
    Rather than trying to have your script trigger AFTER the app launches, rethink your process to a script that FIRST changes the preference, THEN launches the app. You get the same result but about 14 billion times easier to implement.
    In this case, write a script to set the function key preference, then launch FL Studio. The script can then hang around to wait for the app to quit and reset the pref.
    Furthermore, don't try to do this the human way (open System preferences, select Keyboard, check the box). You can set the preference directly via the defaults command line utility:
    on run
      do shell script "defaults write .GlobalPreferences com.apple.keyboard.fnState 1"
      tell application "FL Studio" to activate
    end run
    Resetting the preference is a little trickier since you need to detect when FL Studio has quit. You can do this with an idle() handler in your script that hangs around, periodically checking if the app is still running and then taking action:
    on idle
      tell application "System Events"
      if (name of every application process) contains "FL Studio" then
      -- app is still running, so come back and check later:
      return 10
      else
      do shell script "defaults write .GlobalPreferences com.apple.keyboard.fnState 0"
      tell me to quit
      end if
      end tell
    end idle
    Putting these together in a Stay Open script should do much of what you want.

  • Is there a way to open the last file I used in InDesign/Illustrator/Photoshop when I open the app

    I want to create a shortcut (Win7) that will automatically open the last file I used in the above apps when I open the app. Is there a command line switch like /r or /l that does that?

    Thanks, your point is well taken... It would be nice, though, to have the ability to sort a "Last Used" column in iTunes and select a bunch of apps to remove in one shot.

  • TS2771 i was using an app while the battery ran over, then when i recharged my ipod, i can no longer open that app anymore. Why?

    i was using an app while the battery ran over, then when i recharged my ipod, i can no longer open that app anymore. Why?

    No idea why.
    What have you tried to solve?
    Have you tried the basics from the manual?
    restart, reset, restore.
    Have you tried removing the app, tehn adding it back?

  • TS1741 Remote app on my iOS devices control my apple tv, but won't turn my newest gen apple tv on when i open the app.

    Remote app on my iOS devices control my apple tv, but won't turn my newest gen apple tv on when i open the app. It used to turn my previous gen apple tv on. Remote app controls apple tv just fine once i turn it on with the provided remote control. Help?

    Hello CournteyGould3,
    Congratulations on your new Apple TV!  I found an article with steps you can take when your remote app can't connect to the Apple TV.  I recommend following the steps in the article below (you can skip any steps you have already taken):
    Remote app for iPhone, iPad, or iPod touch can't connect to iTunes or Apple TV
    http://support.apple.com/kb/TS1741
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

Maybe you are looking for

  • How can I go back to 3.6? I'm thoroughly disgusted with 4.0

    I've been trying to find the buttons for stop, reload, etc., and they are eluded me. In trying different things I then somehow lost my button for bookmarks, and the new orange Firefox button. This thing is a mess. I decided to try loading 4.0 to at l

  • Unable to clear the phone memory.

    Hi Nokia... Could u please help me out of this problem. I bought Lumia 720 3 months ago. I m using an external memory card from the first day i started using it. Inspite that my phone memory is going on filled up day by day. Now only 200 mb space is

  • PAPI problem

    Hi, We developed one simple process in Aqualogic Studio 5.7 and the same is deployed using Aqualogic BPM process Administrator. The application server used is Weblogic server 9.2. Our requirement is to instantiate/start the process from external Java

  • Theme-Customizer

    Control Panel applet to customize your theme. With this utility you can: change system font family change system font size change font colors change application shortcut sizes at homescreen show or hide the backgrounds for application shortcuts at ho

  • CDATA and XML structure

    Hej! I am trying to but an entire XML structure into a CDATA-tag. But have not been successful. Im using Xquery and trying to somthing like this: I have an variable $example which contains a XML structure. For example: $example = <elementA><A1>valueA