Attaching a script to a Volume

Hi i am trying to activate a automator program when a volume appears, currently this is my script;
on opening folder this_folder
tell application "sync"
activate
end tell
end opening folder
but using this i have to open up the volume myself, what do i have to change to make this to work when the volume justs appears on the desktop. The volume is my Lifedrive harddrive, and i want my automator workflow (sync) to run when it mounts on my desktop . Thanks for the help

In Finder, click Go > Go to Folder, type in /Volumes, and click 'go.' That will reveal the folder to which you can add your folder action. It's important to run a test each time the script is run, so that it's only triggered when a particular drive is mounted. See my script on this thread for a suggestion.

Similar Messages

  • I am enrolled in an online university program that uses Sakai. Fire Fox updated something that attaches computer script to my Word documents when I upload them.

    I am enrolled in an online university program that uses Sakai. Fire Fox updated something that attaches computer script to my Word documents when I upload them. I use a PC and Word 2010

    sigh...this is quite idiotic, but I have found a solution. It was quite simple, really, and yet quite idiotic. I share it for all those reading so that, if you know of anyone else that did what i did, you can easily be the "hero" in their lives.
    After a continued search via youtube or what have you for any possible solutions, I kept coming back to the fact that I was told by my computer that I didn't have "permission" to do the file deletion. I stumbled upon a youtube video that talked about "unlocking", "locking", certain files and what not.
    Long story short, the reason why I couldn't do anything to the files that were on my desktop was due to my "locking" the desktop folder. I must have done this a while back not knowing what I was doing nor the ramifications of clicking a simple box.
    I undid this by:
    Opening Up Finder
    then, going to MacHD --> Users --> My Account Folder
    clicking on Desktop Folder, I "cmd+I"
    I then, unclicked the "locked" option
    I went down to the cog/settings and selected "Apply to enclosed items"
    resulting then in having all my files on my desktop free accessiblity and delete-ability....
    oi...at least I now  know what "locking" a folder (even the desktop folder) can do to other files held within it

  • Attach java Script to 3d annotation

    How to attach java Script form to 3D Annotation using acrobat javaScript in plug-in ?

    Duplicate thread
    Please do not create multiple identities to ask the same question.

  • Attach interactive script to business transaction.

    Hello,
    I have create an interactive script,
    1.Is it possible to attach it to a business transaction without a campaign?
    If it is possible, how can I do that?
    2.can I update marketing attributes in BP from the script (in the IC WIN)
    Thank you very much.
    Ohad.

    Hi Elmar,
    I think I know what you mean with templates. Within the script repository of the IC_MANAGER profile there is a node calls u201CTemplatesu201D. The node contains the folder DAFAULT and there you can find all the templates that are also described in the SAP help [http://help.sap.com/saphelp_crm70/helpdata/en/45/f0667d622206f6e10000000a155369/content.htm] John already mentioned.
    Unfortunally these templates are nothing to have a look at and find out how SAP did it but, thatu2019s what I though at first glace too. They are more a kind of profile you use for questions. Or as SAP help says: Templates influence how questions appear on the interface or what information the SAP system accesses or updates when agents run the script.
    So what you do is:
    1.     Create a question e.g. ID: Z_GOOGLE  Description: Open Google URL
    2.     Create a script
    3.     place your question Z_GOOGLE in the script
    4.     define the type of your node
    a.     click on the node (here your question Z_GOOGLE)
    b.     go to the tab u201CNode Propertiesu201D
    c.     select a template type e.g. www.google.com (I'm not sure if it the pure url or a url id you defined in the IMG)
    5.     save your change
    6.     after saving a new tab will be available called u201CParameteru201D here you can enter your URL as described in the help
    Having figured out this, problems wonu2019t stop. We e.g. still struggle to launch the right URL or telling the LTX to also open the ITS properly.
    Well that is why we enjoy working with SAP, coz it keeps our brain busy ; )
    Cheers,
    Thea

  • Setup scheduled script for "dot_clean/volumes/"

    Hi,
    I'd like to create a script to run every evening that cleans our windows shares of the "._" files that appear. Can you tell me how to create a script like this, please:
    dot_clean /volumes/
    This is a script I've created so far, but it's saying 'permission denied'.
    do shell scripts"~/ desktop / dot_cleanscript.rtf" password "password" with administrator privileges
    Please help
    Thanks
    Chris

    You need to save the script as plain text, not RTF, include the following on the top line of the file:
    #!/bin/sh
    and set the executable bit on it. To do this, run:
    chmod +x
    on the file.
    (46290)

  • Script to change Volume for TimeMachine?

    Hello,
    could anyone help me with a script that changes the volume for use with Time Machine?
    My parents are using their laptops about half the time at home with a Time Capsule. The other half, they stay at the office, equipped with a second Time Capsule which is used for all the other Macs at the office.
    We are using MarcoPolo (http://www.apple.com/downloads/macosx/networking_security/marcopolo.html) to change printer settings and other things.
    MarcoPolo is also able to perform own scripts. I want to use this feature, to allow Time Machine to back up to both Time Machines automatically without switching the TM volume manually in the system prefs.
    But I don't have any experience in scripting, so I really would appreciate your help.
    Greetings,
    Michael

    there is no nice way to do this. this operation is not scriptable. the best you can do is use GUI scripting which essentially records what you do on the screen. this can be done with automator. see this thread for details.
    http://discussions.apple.com/thread.jspa?messageID=8287777&#8287777
    However, any kind of script like that is bound not to be very reliable as a user can easily accidentally interfere with it while the script is running.

  • Attach email script to database update code

    I need to send a very simple email to a predetermined
    recipient when my Access database is updated. How do I attach an
    email script to it?
    Thanks.

    first is to check out which "E-Mail" Component on the
    webserver is installed. Check the FAQ of your hosting company. If
    they do not have any e-mail component installed try this:
    http://www.webwizguide.com/asp/tutorials/email_using_cdonts_tutorial.asp
    you have to use the e-mail component after updating the
    database - be sure to control, that the update was really made
    before sending the email
    regards
    Sebastian

  • Need help scripting a sliding volume scale.

    Hi, I hope this is in the right section, I am trying to make
    a flash flv player (sort of like youtube) for my site. I have it
    practically done but need a better volume adjustment. Currently, I
    have only been able to figure out how to make a sound on/off button
    but what I would really like is the volume control found on this
    player.
    http://www.jeroenwijering.com/?item=JW_Media_Player
    Could someone please help me with the script for it? I am
    really new to flash but I made the following 3 objects in the
    library. Solid black graphic in to a movie object, 1 solid black
    graphic in to a button, and one light grey graphic in to a button.
    I assume I need a script for each of those 3 objects. Thanks for
    the help!
    P.S. Using Adobe Flash CS3 Trial

    you need to submit it to another file which in turn will
    insert the information on the fold field using SQL. for example...
    INSERT INTO contact
    VALUES FORM.Firstname, FORM.LastName, FORM.Phone
    I don't know what programming code you are using (Coldfusion,
    PHP, ASP ..etc).
    Here's more information.
    http://www.w3schools.com/sql/sql_insert.asp

  • [solved]Command line script to equalise volume levels of all mp3 files

    Hello guys,
    I have a bunch of mp3 files within a folder. Unfortunately they have unequal volume levels. Some of them are far too low, others too loud.
    Is there a simple command line script to equalise all of them?
    Regards
    Robert
    Last edited by orschiro (2012-12-30 17:44:59)

    I remember I found such a script a long time ago. I suppose it still works, here it is http://codepad.org/MLu1iscD. Please tell me if it works for you. By the way, it depends on mp3gain and python2-eyed3.
    ps: As far as I can see, this script doesn't change the mp3 files itself, but stores the new volume in the id3 tag. This means, that you won't corrupt your files in any way, but the player needs to be able to get the volume information and adjust it. The script measures both the album and the track gain. Which one is used can be configured in the player.
    Last edited by Army (2012-12-30 16:39:27)

  • I have the 1st gen iPad and for some reason, the sound currently stopped working. Even if there are no headphones attached, when you adjust the volume it says that headphones ARE attached. The sound also doesn't work even if I DO plug in headphones. Help!

    I don't even know what to try so any help is appreciated.

    Reset iPad
    Hold down the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears
    Note: Data will not be affected.

  • Trying to attach a Story script to a multicam edit

    I have a multicam edit of an interview which has been transcribed in Adobe Story.  I'm trying to attach the script so I can access points of the interview through the script metadata. Premiere doesn't seem to want to attach a script to a multicam sequencs, yet if I attach it to the individual clips (there are five of them) I don't see the script in the multicam meta.  How can I best utilize the embed script feature in multicam?  I am updated to all current versions of CC.  Thanks!

    I'm trying to do this as well. Trying to figure out the best post workflow when dealing with transcriptions and multi camera edits with separately recorded audio.
    So far I've attached Story scripts to audio files, then merged those audio files with video, then attached the story script to the merged clip and that all works fine. But seems like I can't create a multicamera edit from merged clips.
    Is there any way to attach a story script to a multicamera edit? Or at least see the script that is attached to clips within the multicamera edit?

  • Using script to delete list item attachment

    $.ajax({
    url: "/_api/lists/getByTitle('Test')/getItemById(1)/AttachmentFiles/getByFileName('test.txt')",
    method: 'DELETE',
    headers: {
    'X-RequestDigest': $('#__REQUESTDIGEST').val()
    i want to delete list item attachment using script.
    Above code working only in ie
    in firefox and chrome it fails
    Any sugestion clads

    working fine when i degug the script...

  • Attaching Scripts to Buttons

    I have a button displayed as Zoom In in the Basket panel:
    HERE
    When I attach this script to the button:
    on (release, keyPress "<Space>") {
    gotoAndPlay(2);
    The mouse release works fine but when I try the keyboard for
    keyPress, nothing happens. Anyone got any ideas as to what I am
    doing wrong?

    hi,
    i think handling keyboard-input works different ->
    1. there is (as far as i know) no Event "keyPress" (they are
    "onKeyDown" and "onKeyUp")
    2.You´ll first have to create a Listener-Object which
    has functions "onKeyDown" or "onKeyUp" or both:
    var objListener = new Object();
    objListener.onKeyDown = function(){
    if(Key.isDown(Key.SPACE){
    // do whatever
    3. You have to register that Obj as Listener to the Keyboard:
    Key.addListener(objListener);
    that should do.
    cheers,
    tom

  • Mount volume script

    I try to mount some remote volume on a MAC PRO using the following script:
    t+ell application "Finder"+
    + mount volume "smb://vikyi:@192.168.0.15/public"+
    + +
    +end tell+
    and I get the following error :
    +tell application "loginwindow"+
    + mount volume "smb://vikyi:@192.168.0.15/public"+
    + «event ascrgdut»+
    + mount volume "smb://vikyi:@192.168.0.15/public"+
    + "Finder got an error: \"smb://vikyi:@192.168.0.15/public\" doesn't understand the mount volume message."+
    My problem occurs only on this MAC PRO, while on other does not. Should I change something ?
    Thank you.

    the following script should do it
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #ADD8E6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    set diskname to "name of disk"
    tell application "Finder"
    if (exists disk diskname) then
    do shell script "diskutil unmount /Volumes/" & quoted form of diskname & "> /dev/null &"
    else
    set devnumber to do shell script "diskutil list |grep " & diskname & " |awk '{print $6}'"
    do shell script "diskutil mount " & devnumber
    end if
    end tell</pre>
    paste it into Script Editor, put the name of the disk in question in the first line and save the script as an application. if the disk is mounted, the script will unmount it. if it's unmounted it will mount it.

  • [UCCx] Change volume of an audio file (java code)

    Hello guys,
    Thanks to the many examples I compiled on the subject, I was able to create a script that mixes 2 audio wav files into a 3rd one. Basically the goal is to mix a first audio file containing some speech with a second one containing some music, these files being encoded identically (8 bits, 8KHz, mono wav files). The resulting file must be encoded in the same format than the initial ones.
    The mixing operation is performed thanks to the MixingAudioInputStream library found online (it can be found here).
    It is not the most beautiful Java code (I am no developer), but it works:
    Document doc1 = (Document) promptFlux1;
    Document doc2 = (Document) promptFlux2;
    Document docFinal = (Document) promptFinal;
    javax.sound.sampled.AudioFormat formatAudio = null;
    java.util.List audioInputStreamList = new java.util.ArrayList();
    javax.sound.sampled.AudioInputStream ais1 = null;
    javax.sound.sampled.AudioInputStream ais2 = null;
    javax.sound.sampled.AudioInputStream aisTemp = null;
    javax.sound.sampled.AudioFileFormat formatFichierAudio = javax.sound.sampled.AudioSystem.getAudioFileFormat(new java.io.BufferedInputStream(doc1.getInputStream()));
    java.io.File fichierTemp = java.io.File.createTempFile("wav", "tmp");
    ais1 = javax.sound.sampled.AudioSystem.getAudioInputStream(doc1.getInputStream());
    formatAudio = ais1.getFormat();
    aisTemp = javax.sound.sampled.AudioSystem.getAudioInputStream(doc2.getInputStream());
    byte[] bufferTemp = new byte[(int)ais1.getFrameLength()];
    int nbOctetsLus = aisTemp.read(bufferTemp, 0, bufferTemp.length);
    java.io.ByteArrayInputStream baisTemp = new java.io.ByteArrayInputStream(bufferTemp);
    ais2 = new javax.sound.sampled.AudioInputStream(baisTemp, formatAudio, bufferTemp.length/formatAudio.getFrameSize());
    audioInputStreamList.add(ais1);
    audioInputStreamList.add(ais2);
    MixingAudioInputStream mixer = new MixingAudioInputStream(formatAudio, audioInputStreamList);
    javax.sound.sampled.AudioSystem.write(mixer, formatFichierAudio.getType(), fichierTemp);
    return fichierTemp;
    The only downside to this is that the music can be a little loud comparing to the speech. So I am now trying to use the AmplitudeAudioInputStream library to adjust the volume of the second file (it can be found here).
    Here are the additional lines I wrote to do this:
    ais2 = new javax.sound.sampled.AudioInputStream(baisTemp, formatAudio, bufferTemp.length/formatAudio.getFrameSize());
    org.tritonus.dsp.ais.AmplitudeAudioInputStream amplifiedAudioInputStream = new org.tritonus.dsp.ais.AmplitudeAudioInputStream(ais2, formatAudio);
    amplifiedAudioInputStream.setAmplitudeLinear(0.2F);
    audioInputStreamList.add(ais1);
    audioInputStreamList.add(amplifiedAudioInputStream);
    MixingAudioInputStream mixer = new MixingAudioInputStream(formatAudio, audioInputStreamList);
    javax.sound.sampled.AudioSystem.write(mixer, formatFichierAudio.getType(), fichierTemp);
    return fichierTemp;
    The problem is I always get the following exception when executing the code:
    could not write audio file: file type not supported: WAVE; nested exception is: java.lang.IllegalArgumentException: could not write audio file: file type not supported: WAVE (line 30, col:2)
    The error is on the last line (the write method), but after many hours of tests and research I cannot understand why this is not working... so I have added some "debugging" information to the code:
    System.out.println("file1 audio file format: " + formatFichierAudio.toString());
    System.out.println("file1 file format: " + ais1.getFormat().toString());
    System.out.println("file2 file format: " + ais2.getFormat().toString());
    System.out.println("AIS with modified volume file format: " + amplifiedAudioInputStream.getFormat().toString());
    System.out.println("Mixed AIS (final) file format: " + mixer.getFormat().toString());
    AudioFileFormat.Type[] typesDeFichiers = AudioSystem.getAudioFileTypes(mixer);
    for (int i = 0; i < typesDeFichiers.length ; i++) {
    System.out.println("Mixed AIS (final) #" + i + " supported file format: " + typesDeFichiers[i].toString());
    System.out.println("Is WAVE format supported by Mixed AIS (final): " + AudioSystem.isFileTypeSupported(AudioFileFormat.Type.WAVE, mixer));
    System.out.println("Destination file format: " + (AudioSystem.getAudioFileFormat((java.io.File)f)).toString());
    AudioInputStream aisFinal = AudioSystem.getAudioInputStream(f);
    System.out.println("Is WAVE format supported by destination file: " + AudioSystem.isFileTypeSupported(AudioFileFormat.Type.WAVE, aisFinal));
    try {
    // Ecriture du flux résultant dans un fichier
    javax.sound.sampled.AudioSystem.write(mixer, formatFichierAudio.getType(), fichierTemp);
    return fichierTemp;
    catch (Exception e) {
    System.err.println("Caught Exception: " + e.getMessage());
    Which gives the following result during execution:
    file1 audio file format: WAVE (.wav) file, byte length: 146964, data format: ULAW 8000.0 Hz, 8 bit, mono, 1 bytes/frame, , frame length: 146906
    file1 file format: ULAW 8000.0 Hz, 8 bit, mono, 1 bytes/frame,
    file2 file format: ULAW 8000.0 Hz, 8 bit, mono, 1 bytes/frame,
    AIS with modified volume file format: ULAW 8000.0 Hz, 8 bit, mono, 1 bytes/frame,
    Mixed AIS (final) file format: ULAW 8000.0 Hz, 8 bit, mono, 1 bytes/frame,
    Mixed AIS (final) #1 supported file format: WAVE
    Mixed AIS (final) #2 supported file format: AU
    Mixed AIS (final) #3 supported file format: AIFF
    Is WAVE format supported by Mixed AIS (final): true
    Destination file format: WAVE (.wav) file, byte length: 146952, data format: ULAW 8000.0 Hz, 8 bit, mono, 1 bytes/frame, , frame length: 146906
    Is WAVE format supported by destination file: true
    So everything tends to show that the format should be supported and the mixed AIS should be written to the file... but I still get the error.
    I am really confused here, if someone could help it would be great.
    Thanks in advance!
    PS: I have attached print screens of the actual script, without the "volume adjustment" code.

    Hi,
    well I started writing a similar solution but it did not work either so I just put it on hold.
    I also tried to get hold of the streaming "device" abstraction of UCCX to adjust the volume while "playing" but that was a dead end, too, unfortunately.
    Sorry about my previous comment on your StackOverflow post, that time I thought it was kind of out of context but I believe you only wanted to ask about this issue on all available forums.
    G.

Maybe you are looking for