Newbe at Applescript - Need Help Getting Applescript to Auto-Run

Ok so I admit I'm new at creating Apple Scripts, but here's my dilemma:
I have created an Apple Script to mount and unmount my new LaCie d2 Quadra 1TB drive (For use with the LaCie "Shortcut Button), the script "runs" great in Script Editor. However, when finally saved to a newly created Mac HD>Library Folder>Scripts Folder>LaCie d2 Shortcut Button Scripts Folder ... when I use the LaCie d2 front panel "shortcut button", the script launches the Script Editor app and the script shows in the script window. If I select "run" in the window the script will mount and then unmount the LaCie drive (in the Finder), as designed to do.
My issue is, obviously, how do I get the script to run/activate "behind the scenes without always
launching the Apple Script Editor app.
Have I saved the script wrong or something else?
Is the script something to be "run" through Apple Automator?
Any assistance will be appreciated.
This is the script:
tell application "Finder"
if not (exists the disk "LaCie 1TB") then
do shell script "diskutil mount `disktool -l | grep 'LaCie 1TB' |
sed 's/.\(disk[0-9s]*\)./\\1/'`"
delay 2
else
eject "LaCie 1TB"
delay 2
end if
end tell

Ah yes ... changing the Apple Script from .scpt to .app., that works!
But I still notice that when the LaCie d2 Quadra 1TB drive "front short-cut button"
is selected, and it mounts and dismounts the drive from the finder as the Apple Script
was written to do .... that the Apple script still launches the "script icon and the script saved text title", briefly in the bottom dock. It then disappears out of the dock once the script has "run".
Is there any way to keep the "script icon and the script saved text title" from launching in the dock (when the script first runs), and just have it launch invisibly "behind the scene" so to speak?

Similar Messages

  • Newbie alert! - need help getting started

    Hello!
    (If there is a better place to post this message, please forgive me, and tell
    me where I should post.)
    My team is moving to the Weblogic app server platform, and my current task is
    to get my feet wet.
    I've picked up a few things after digging around in the documentation, and on
    this website, but I've got a few holes in my knowledge. If someone could point
    me at where I should read, I'd appreciate it!
    We've got JBuilder 9 Weblogic Edition installed on our dev boxen (Win2k PCs),
    an Oracle database (Oracle 9i on a Sun box) prepared, and an application server
    going (Sun Ultra-10 running Solaris 9 64-bit, named "wlapp"). I've installed Weblogic
    Server 8.1 to the app server, and it seems to have installed correctly. I've managed
    to get the medrec example running on that server (it took a little tweaking of
    the script), but I have no idea how to access it.
    I did a "ps -ef" and I can see a process called "htt_server" with a parameter
    "-port 9010" running on it, but pointing a web browser to "http://wlapp:9010"
    does nothing useful.
    In the tutorial (http://edocs.bea.com/wls/docs81/medrec_tutorials/index.html)
    it helpfully says "If you are interested in viewing or using the complete MedRec
    application before starting the tutorials, you can use the pre-built MedRec domain
    that is installed with WebLogic Server." It fails to mention how to make this
    first, probably obvious, step.
    Can anyone tell me how to try out my (hopefully running) MedRec example application?
    Thanks in advance! --- Eric

    Hi,
    Can you provide us the server configuration you entered in the Project creation wizard (New Flex Project -> Configure ColdFusion server wizard)?
    The error shown looks like a configuration problem.
    Thanks,
    Balaji
    http://balajisridhar.wordpress.com

  • Need help getting my applet to run..

    Hi, I am having the utmost trouble getting my applet to run. First I spent a month correcting syntax and other errors generated during compile. Now I find myself spending another month getting the compiled product to run. I don't care if the screen is completely blank and my logic is all messed up, I don't mind logic debugging. My applet just will not run at all, it won't even initialize.
    First when I tried to run my applet in Internet Explorer I got the following error in the statusbar:
    "load: tsorgi5 can't be instantiated"
    So, I researched that error message, and the solution appeared to be that I would need to use the Java Plug-In. So, I use that and now I find this message in the statusbar:
    "exception: null."
    That happens when the text "Loading Java Applet ..." is in the centre of the applet, and Internet Explorer acts like it is still doing something no matter how long I wait.
    I tried researching this, but only found "exception: null" with other things after the text "null."
    In Forte, when I choose "Execute" I get the following in the Output Window, I/O tab:
    java.lang.NoSuchMethodError: main
    Exception in thread "main"
    I would assume it expects me to add a method "main()," but I also get that same message with a different applet (which doesn't have a method "main()") which runs perfectly fine.
    I usually try to solve many of my problems myself, but with this one I have no idea where to start looking for answers. I'm relatively new to Java, been using Java for only half a year, so this particular problem is like looking for a four-leaf clover in the streets of New York City..
    I'm going to be chopping my applet into pieces, having a separate class file for each major engine. (It is a role-playing game, so I'll separate battle engine from cut-scene engine from world exploration engine etc..) Hopefully I will be able to narrow down my search for what is causing me all of these problems. Then once I solve my problems I can piece everything back together.
    In the meantime, I am hoping that some of you could help me out so that I may know what I am looking for.
    Thank You for your time,
    -Tony Slater

    Ah.. Forte is still a bit confusing to me, I have not and probably will not take the time to learn much about Forte, as the only real reason I use it is because unlike wordpad, I can see line numbers. =] Very helpful with my program being the size that it is.
    I do not think that the simple applet idea will be of much use, because one of my earlier applet projects (a main menu for my current project) which I mentioned above as another applet without a main() method which worked perfectly fine is very simple. Although I will try it anyway, as it could help and you are most likely much more experienced than I. =]
    Okay, I typed the following in the Dos Prompt:
    appletviewer TestApplet.class
    ..It printed a blank line, paused a little bit, then brought me back to the prompt, just like running a dos program that does not give any output. I'm not sure, but I would assume it should print a line containing the text "Here?" I have not used appletviewer before, so I do not know what it is supposed to do. =P
    I have already tried using System.out.println, but the problem occours even before the applet is started. I'll try enabling the Java Console first thing tomorrow morning, since a restart is required when enabling it.
    Now, I would be happy to post some code, but I'm not sure it would be best to post the code when my program is 2814 lines.. although 800 lines are probably comments, and most of those comments are probably irrelevant. Also I can sometimes be a messy coder. Although I can post some general information and can probably (with a little work) post an "outline" of the code.
    Since it is getting late I'll just post some portions of code which hopefully will prove important.
    // Import Packages
    import java.awt.Graphics;
    import java.awt.Color;
    import java.awt.*;
    import java.applet.*;
    import java.lang.System;
    import java.lang.reflect.Array;
    import java.lang.Math;
    import java.lang.Double;
    import java.math.*;
    import java.util.Random;
    import java.io.*;
    variable/object types created and/or declared between "public class.." and "public void init()...":
    int
    byte[]
    String
    RandomAccessFile
    int[][]
    double
    int[]
    double[][][]
    Random
    Image
    int[][][]
    arrays are filled in the init() method.
    public String getIniStrValue(String iniFile, String iniGroup, String iniItem) // Used for retrieving information from the game's external file system.
    another method getIniIntValue(int, String, String, String) is used for int values stored in external files.
    Within public void paint(), gameplay modes are detected and dealt with accordingly. With Cut-Scenes, proper charecter images and text is displayed, all cut-scene information is stored externally. Other modes do virtually the same, display graphics and text based on internal game data or un-changing external data files.
    Within public void mouseClick(), in certain modes of the game the mouse click will trigger a change no matter where the user clicked (such as cut-scenes, to advance to the next line of dialog), or different variables are set depending on where the user clicked. (What I like to call.. custom buttons) At the end of the method repaint(); is used, and the paint() method will alter the screen according to any changes that may have happened.
    public void charAttack() is a method called to handle battle equations when a playable and controllable charecter is making a move. It will detect the current charecter, detect the move being made by the charecter (attack, special move, magic, etc) and will change any variables accordingly and will then use repaint(); so that the player may know what has happened. (Whether or not attack was successful, how many HP the enemy lost, etc)
    public void loadBattle() is called when the charecter encounters an enemy. It will load possible enemies of the current part of the world being explored, select one, then load that enemy's "stats" from external game data files, and will then specify the new mode (Battle Menu, where the player chooses the moves to be made for the turn) by setting the int value "Mode." repaint(); is then called and it will paint the battle menu.
    public boolean keyDown() is of course used to detect keyboard events. In world exploration, the charecter will be moved accordingly. In modes such as cut-scenes, a variable will be changed to advance to the next line of speech. In menus, the keyboard events are used to switch between options. repaint(); is used to update the screen accordingly.
    Well, even though I very briefly summarized the code, it appears to have taken half an hour to do. I'll be getting some sleep in a few minutes, and when I wake up tomorrow morning I hope to both see and make some progress on solving this problem.
    Thank You,
    -Tony Slater.

  • Need help getting I-tunes to run on XP

    I have tried most all the tricks listed and still I-tunes will not run on relatively new windows XP, Dell machine (also newly purchased I-pod), - I have disabled virus protection, I have loaded most recent versions of i-tunes, I have cleared temp files and reloaded. I tried loading Q-time player as a stand alone. I deleted old folders of I-tunes and Q-time and reloaded.
    I-tunes down-loads without any error message. the I-pod connects to USB and charges - and shows up as an "E" drive. But clicking on i-tunes icon, or loading audio disk or connecting I-pod all fail to visably launch i-tunes (nothing is seen in task manager after attempting to launch I-tunes - but on shut down of the computer I get the message that I-tunes is not responding and must be shut down manually) (also for grins I tried launching newly loaded Q-time -> I get message saying its loading, but this message never clears). Already 10 hours spent on this

    Hello,
    Unfortunantly, I'm not quite good in JavaScript to give you a good response. But I can you give you an advise, that can help you:
    1. Add a simle system.out.println("Init called!"); message in public void init() method of the servlet RefreshInfo.
    2. Try to access servlet by simple browser request "http://localhost:8080/yourApp/RefreshInfo".
    2. If the message "Init called!" appears in the Tomcat console, your servlet code is correct and the serlet is described properly in web.xml . In this case, the possible problem is in the JavaScript code.
    Good day,
    http://www.myjavaserver.com/~voronetskyy/

  • Need help getting adobe air to run on windows

    how do i get windows to recognize adobe air as a program to open a .swf file?

    Hello,
    Unfortunantly, I'm not quite good in JavaScript to give you a good response. But I can you give you an advise, that can help you:
    1. Add a simle system.out.println("Init called!"); message in public void init() method of the servlet RefreshInfo.
    2. Try to access servlet by simple browser request "http://localhost:8080/yourApp/RefreshInfo".
    2. If the message "Init called!" appears in the Tomcat console, your servlet code is correct and the serlet is described properly in web.xml . In this case, the possible problem is in the JavaScript code.
    Good day,
    http://www.myjavaserver.com/~voronetskyy/

  • Need help getting PC2 8500 to run at 1066

    I have an MSI MS-7510 P7N Diamond motherboard, Core 2 Quad Q6600 overclocked from 2.40 GHz to 3.0 GHz via raising FSB to 1333 MHz and running stable for ~ 3 years now.
    I just installed 2x PC2 8500 2GB G. Skill sticks for 4 GB RAM (replacing  4x 1 GB) and CPU-Z reports DRAM frequency at 400.0 MHz.
    I have tried setting DRAM Frequency to 1066, timings to 5-5-5-15 (the rating of the RAM sticks), DRAM Voltage at 2.1, and Memory Timing to 2T.  The systems starts to load Windows 7 and then it reboots back to POST screen and continues in this loop until I undo reset DRAM back to 800.
    Is it possible for me to get this RAM set to 1066 MHz?

    Thanks for the fast reply. Here’s what I did.
    DRAM Frequency set to 1066 (from original setting of 800)
    Timings to 5-5-5-15 (from original setting of AUTO)
    Memory Timing to 2T (from original setting of AUTO)
    DRAM Voltage to 2.1 (from original setting of AUTO)
    The only DRAM Frequencies that boot into Windows 7 are 800 and 533, which CPU-Z reports as 400 and 266.5 respectively. 1066 puts the PC into an endless boot/POST loop and I have to go into BIOS and adjust DRAM frequency off of the 1066 value to either 800 or 533 to get into Windows 7.
    Is DRAM Frequency of 800 (as reported in BIOS) the best I can do? If so the only difference to my machine now is going from 4x 1GB RAM sticks to 2x 2GB RAM sticks and I’m still at 4 GB RAM running DRAM 800 MHz.
    So I can use my machine again I set –
    DRAM Frequency 800 in BIOS (CPU-Z reports 400)
    Timings 5-5-5-15
    Memory Timing 2T
    DRAM Voltage 2.1
    I have a feeling that I am either overlooking something simple here or my machine just cannot handle RAM running at 1066 MHz. With all the OC functions this MSI board has I would think I could get the RAM rated at 1066 to run at 1066 instead of 800.

  • Need help getting first servlet to run in tomcat

    hi,
    i've complied my first servlet ok, using tomcat as server, problem is it can't find it. i up the class file under Web-inf/myApp under tomcat directory, typed:
    http://localhost:8080/myApp/TestingServlet
    in the url but it can't locate it. also i did start tomcat before going to url. can someone tell me what am i missing?
    Thank you.

    ok i got it to run but i had to create a classes dir under web-inf and had to use the url:
    http://localhost:8080/myApp/servlet/TestingServlet
    but why the servlet in the url, i don't have a servlet dir, does tomcat map classes dir to servlet dir?
    Thank you.

  • TS1538 i need help because i need help getting my ipod touch to connect to windows vista and

    i need help getting my ipod touch to connect to windows because it keeps saying udb device not recognized and i tr\]ied restarting the settings!!!!!

    Have you tried here:
    iOS: Device not recognized in iTunes for Windows

  • I need help getting itunes on my new computer. old one crashed

    My old computer crashed, I downloaded iTunes on my new computer and need help getting all of my stuff on it that I had. I did 'home share' to see if that worked, and it didnt.
    Also, on my old computer, when I synced my iPad & my husbands iPod, it didnt sync any music or podcasts, no videos-and i went through each category seperately to sync it and it didnt work. So I can't sync my devices to the new iTunes bc not everything is on there that i have purchased.

    It has always been very basic to always maintain a backup copy of your comuter for just this occasion.  Use your backup copy to put everything on the new computer.
    If for some reason you have failed to maintain a backup, not good, then you can redownload some itunes purchases in some countries:
    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • TS4268 I need help getting my face time and imessage to work.

    I need help getting my face time and imessage to work. It is saying wating for activation. I just got my iphone 5 2 days ago. I have reset it from the phone and from itunes on the computer, made sure I'm attached to wifi.

    The 3 basic troubleshooting steps are these in order: 1. Restart your iphone  2.  Reset your settings/iphone  3.  Restore your iphone.  Since your iphone is only a couple of days old, you should backup your device before restoring.  If you don't have anything on your iphone that you care to lose, then simply restoring without a backup is fine.  A quick reset of pressing the sleep/wake button (top of iphone) and your home button simultaneously and holding it until the silver Apple logo appears. 

  • I need help getting my OS X Mavricks download to work and start downloading but it wont work

    i need help getting my OS X Mavricks download to work and start downloading but it wont work

    Contact http://www.apple.com/support/mac/app-store/contact/. They're responsible for getting this abysmal delivery system to work.

  • I need help getting my os x mountain lion to work for my pro tools

    I need help getting my os x mountain lion to work for my pro tools

    Since you provide no details I can do nothing but guess, so perhaps this will help:
    http://avid.force.com/pkb/articles/en_US/how_to/Upgrading-to-Mac-OS-10-8?popup=t rue&NewLang=en&DocType=1080
    http://avid.force.com/pkb/articles/en_US/compatibility/Avid-Software-and-Mac-OS- X-10-8?popup=true&NewLang=en&DocType=1083
    If you continue to have problems, you probably should contact Avid support.
    Regards.

  • I need help getting my printer to work

    I need help getting my printer to work

    http://h30434.www3.hp.com/t5/Printer-Networking-and-Wireless/Want-Good-Answers-Ask-Good-Questions/td...
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • I need help getting new authorization codes for digital copies

    I need help getting new authorization codes for digital copies of movies. Can someone help me out?

    There's a lot of results in Google when you search for this but unfortunately refreshing the page doesn't seem to generate a different code anymore. Mine also says already redeemed

  • Hi! I am newbie to Reports need help with check boxes

    Hi! I am newbie to Reports need help with check boxes. I am try-in to make a new check boxes that will validate in runtime. I have created two frames and one frame is dummy and other frame has big X line on it with conditions. Is this a right way to create check box! Please help thanks!

    and one frame is dummy and other frame has big X
    line on it with conditions. Is this a right way to
    create check box! Please help thanks!Instead of creating a frame for X, you can create Ractangle and place X in it. Rest is fine.

  • Now i have tryied everything i need help getting premier pro trial real help pls!

    now i have tryied everything i need help getting premier pro trial real help pls!

    Hi,
    Are you facing issues installing Premiere pro trial?
    Please mention your operating system.
    Error(If you're getting any)
    Thank you,
    Mohd Naseem

Maybe you are looking for

  • Dual Boot on 2 SSD`s

    I currently have Windows 8.1 installed on my boot SSD and I have a spare SSD doing nothing. If I install Windows 10 on the spare SSD, will it become the boot SSD?  And can I just unplug the Windows 10 SSD and boot from Windows 8.1 SSD or will a dual

  • What is the best way to partitioning Macbook Air 13" 2012 solid state drive

    What is the best way to partitioning Macbook Air 13" 2012 solid state drive.

  • Problems with iCloud shared photo album

    I am subscribed to a shared photo album via iCloud. I had to restore my phone, and afterwards, my shared album was blank, no photos there. It appears fine on my iPad; I can see all photos previously added. I made sure that I have iCloud Photo Sharing

  • Material  not maintain by purchasing

    hi guys when i tried to convert the planned order into purchase requesation for material type semi finished.but te system show error " material not maintained by purchasing " but i maintain purchasing view for the same material . pls lighten me with

  • JRun multi-svr clustering seems to disconnect on reboot

    i have recently upgraded to mx 7 and have the multi-server configuration set up with 2 identical instances on the same machine, added to a cluster. these each have 5 websites using IIS 6. after the cluster was made, i ran the webserver config tool an