What does this simple folder action not work?

OK I have been playing with this all weekend. I just wanted a simple folder action to move a file from folder a to folder b. There is really not much to it. The workflow works just fine. "Somtimes" running the script runs the workflow.app. However when I drop a file into folder a - nothing happens. I have enabled folder actions. Can anyone help?
here is a pic of the relative screens that should help you.
http://flickr.com/photos/hawsnet/2605303472/sizes/l/
Thanks for any help you can provide.
PS I even stopped by my local Genius Bar -- they could not help.

Vantive,
Try either:
*on adding folder items to this_folder after receiving added_items*
*tell application "Finder"*
*repeat with this_item in added_items*
*move this_item to folder "Folder B" of folder "Desktop" of folder¬*
*"MyShortName" of folder "Users" of the startup disk*
*end repeat*
*end tell*
*end adding folder items to*
Or:
*on adding folder items to this_folder after receiving added_items*
*tell application "Finder"*
*repeat with this_item in added_items*
*move this_item to "Macintosh HD:Users:MyShortName:Desktop:Folder B"*
*end repeat*
*end tell*
*end adding folder items to*
In either case replace MyShortName with your actual short name. +Make sure the script is saved to your Home/Library/Scripts/Folder Action Scripts folder.+ Then right-click or control-click on "Folder A" and, if necessary, select "Enable Folder Actions." If enabled, right-click or control-click on "Folder A" and select "Attach a Folder Action…" When the Choose-a-File window appears highlight the script and press Choose.
Both of the above scripts worked for me in testing. For what it's worth, both my /Library/LaunchAgents, and /System/Library/LaunchAgents folders are empty.
Good Luck...
Regards, Andrew99

Similar Messages

  • What does this error means "Could not create Entity EJB"

    This error occurs when i tried to run my entitybean example, so may i know what does this error means? How can i resolve it?
    I am connecting to an Oracle8 DB, but it seems tat i have problem connecting to it and retrieving record from the database. Can anyone help me how to establish a connection to my Oracle DB??
    Need help urgently. thanx.!

    have you tried simple jdbc connection?
    Driver drv = Class.forName("oracle.jdbc.driver.OracleDriver");
    Connection conn = DriverManager.getConnection(oracle:jdbc:thin:@myhost:1521:instance, "usrname", "password");
    If this works you're able to connect! so check that your oracel datasource is well specified in your deploiement descriptor and that your bean references this datasource.
    hope it helps

  • Folder action not working outside automator

    I have a folder action to convert and move all mkv files from within the downloads folder. The folder action included (among other) the following script:
    on run {input, parameters}
              set filename to POSIX path of input
              do shell script "/usr/local/bin/mkvdts2ac3.sh -n " & quoted form of filename user name "white" password "*****)" with administrator privileges
      #do shell script "mount -t smbfs //panos:z2kdft50@nas/internal internal" user name "white" password "******)" with administrator privileges
              do shell script "mv " & quoted form of filename & " /Users/white/internal/library/" user name "white" password "****)" with administrator privileges
              do shell script "rm -rf /Users/white/Downloads/*.dts" user name "white" password "*****)" with administrator privileges
              set message to "File " & filename
              return message
    end run
    The total workflow runs perfectly from within automator.
    The problem is that when the folder action is triggered from the system (regular usage, ouside automator) the workflow executes up to the point that the applescript is implemented (I ghave installed growl notifications at various points to know how far the script has run)
    Does anybody have any idea why could this be happening?
    I  have looked around but found no answers.
    Thanks.
    <Edited by Host>

    Thanks.
    I replaced the applescript with the following shell script:
    /usr/local/bin/mkvdts2ac3.sh -n $@
    mv $@ /Users/white/internal/library/
    rm -rf /Users/white/Downloads/$@
    It works.
    I had tried a shell script in the very begining, but I could not get it to work so I resorted to Applescript instead. I felt myself too that applescript was an unnecessary complicated procedure just to run shell commands.
    Anyway, now, each time a dts download finishes, it gets transcoded to dolby digital so that it can be played on my samsung tv (it's media player does not support dts).

  • Folder action not working

    I can't figure out why the following folder action script does not work.  I get the alert message but when I choose 'yes' the file is not copied...am I missing something?
    Thanks.
    Pedro
    property dialog_timeout : 30 -- set the amount of time before dialogs auto-answer.
    on adding folder items to this_folder after receiving added_items
        try
            tell application "Finder"
                --get the name of the folder
                set the folder_name to the name of this_folder
            end tell
            -- find out how many new items have been placed in the folder
            set the item_count to the number of items in the added_items
            --create the alert string
            set alert_message to ("Folder Actions Alert:" & return & return) as Unicode text
            if the item_count is greater than 1 then
                set alert_message to alert_message & (the item_count as text) & " new items have "
            else
                set alert_message to alert_message & "One new item has "
            end if
            set alert_message to alert_message & "been placed in folder " & «data utxt201C» & the folder_name & «data utxt201D» & "."
            set the alert_message to (the alert_message & return & return & "Would you like to view the added items?")
            display dialog the alert_message buttons {"Yes", "No"} default button 2 with icon 1 giving up after dialog_timeout
            set the user_choice to the button returned of the result
            if user_choice is "Yes" then
                tell application "Finder"
                    activate
                    set copyFolder to "Photo [Data]:10 Multimedia:CompAlerts:"
                    set copyitem to file "MacOS:Users:Peter:Documents:CompAlert.rtf"
                    duplicate file copyitem to copyFolder with replacing--THIS DOES NOT EXECUTE
                    --go to the desktop
                    --open the folder
                    --open this_folder
                    --select the items
                    --reveal the added_items
                end tell
            end if
        end try
    end adding folder items to

    The only standout is the line:
                    duplicate file copyitem to copyFolder with replacing--THIS DOES NOT EXECUTE
    where:
                    set copyFolder to "Photo [Data]:10 Multimedia:CompAlerts:"
    In other words, copyFolder is a string. You're trying to duplicate a file to a string? Doesn't seem viable to me.
    Maybe you mean:
                    duplicate copyitem to folder copyFolder with replacing
    In other words, identify the destination as a folder rather than a string.
    If that doesn't work, remove the try/end try statements. This will let the script report any errors, rather than failing gracefully. try/end try is useful for production but supresses error messages, which makes troubleshooting harder.

  • Folder Actions not working

    I'm trying out folder actions for the first time, and I cannot get an action to trigger.
    I regularly use Automator, and I've saved a script as a Folder Action plug-in attached to a folder. I've tried this with several different scripts.
    For example, I've got a script that just displays a message. It works fine if I save it as an app, so I save it as a Plug In>Folder Action. If I select, say, my documents folder, I right click>more>attach a folder action. I then select my script. If I open the Folder Actions Setup, my script is listed as attached to my documents folder. However, if I drop a file into the Documents folder, nothing happens.
    Am I correct in thinking that the script should run when a file is dropped into the folder (and if I'm wrong, how would you do this?), or have I missed something?
    I'm using 2x 2,8GHz Quad-Core Intel Xeon Mac, OsX 10.5.6.
    Cheers
    Steve

    In the Finder (Mac) Help, every user may read:
    *+Running an automation when a folder is changed+*
    +Folder actions let you run automations when a folder is modified. For example, you could run an AppleScript or an Automator workflow whenever something is added to a dropbox folder.+
    +To use folder actions, you attach a folder action script or workflow to a folder. When the folder is opened, closed, or modified, the automation will be activated automatically.+
    +Your script must include a handler for each folder action command used.+
    +To make a folder action scripts available to all users of your computer, put them in the Folder Action Scripts folder located at:+
    +Library/Scripts/Folder Action Scripts/+
    +To make the scripts available only to the current user, put them in the home folder at:+
    +~/Library/Scripts/Folder Action Scripts/+
    *+To enable folder actions:+*
    +1. Open Folder Actions Setup in the Applications/AppleScript folder.+
    +2. Select Enable Folder Actions.+
    +3. Click the ╋ button below the Folders with Actions list and choose the folder containing the folder actions.+
    +4. Click the ╋ button below the Script list and select the desired scripts, then click Attach.+
    My guess is that you missed one of the four steps.
    Yvan KOENIG (from FRANCE vendredi 5 juin 2009 17:09:05)

  • Why does my light/dark actions not work properly anymore?

    hello, I have used these actions a hundred times, and all of a sudden they stop working properly. I have many action sets that have these same types ....brushing in light or dark areas...and it doesnt matter what collection it is, they dont work properly and all are doing the same thing. They seem to paint in blotches and spots instead of airbrushing like I want it to...sorta gives it a smeared look instead. Any help would be appreciated, thank you in advance ;o)

    It would help if you gave us the following System information:
    Operating System / version number
    Photoshop version number
    Amount of RAM installed / % allocated to Photoshop
    Hard drive(s) capacity / free space
    Make and model number of video card
    3rd party plug-ins and version number
    Were the actions made in a different version?

  • Why does my Simple Quicktime Applescript Not work??

    Hey guys..
    This script doesn't make my movie play.. even though in Tiger it would work.
    tell application "QuickTime Player"
    activate
    play
    end tell
    I can open the movie with tell application Finder
    but once open.. Quicktime doens't make it play.. why is that?
    I have macos 10.6.3
    in a MacPro computer
    I'm confused. Is there a special update to make Quicktime respond to Applescript?
    But then I also have Quicktime 7 installed in my Snow leopard..and it also doesn't respond to the quicktime script
    tell application "Qcuiktime Player 7"
    activate
    play
    end tell
    so it doesn't work on either QT 7 or QT X.

    Referring to QuickTime's scripting dictionary (either one), the play command takes one parameter - the document to play.tell application "QuickTime Player"
    play document 1 -- plays whatever is in the front document
    end tell
    Message was edited by: red_menace

  • My Apple TV sees no WiFi networks and the WiFi MAC shows as NA.  Is this normal for an uninitialized Apple TV or does this indicate WiFi is not working on this Apple TV?

    When I am standing near the Apple TV with my iPhone, the iPhone lists a number of nearby WiFi networks, including the one in my home.  I have running the Apple TV over ethernet up till now, so unfortunately the unit is out of warranty.

    That is a modem/wifi problem. Contact your ISP.

  • TS1424 error message, what does this mean? MZCommerce.CreditBalanceMismatch.Mobile_message

    MZCommerce.CreditBalanceMismatch.Mobile_message
    What does this mean?  Will not let me purchase music.

    anche io devo aggiornare il mio tom tom su I Phone ma mi dà il messaggio MZCommerce.purchasablesAssetTooBigForDownload_message
    Non so proprio come aggiornare allora le mie mappe....
    Bella storia questa!!!!
    Se qualcuno mi sa rispondere gliene sarei grata visto che con Apple Store non riesco
    Grazie

  • What does this message mean:  this apple ID has not yet been used in the iTunes store"? I cant connect using my iphone. But it works in iTunes on my laptop.

    what does this message mean:  this apple ID has not yet been used in the iTunes store"? I cant connect using my iphone. But it works in iTunes on my laptop.

    FAQ apple id http://support.apple.com/kb/HT5622?viewlocale=en_US
    http://support.apple.com/kb/HT1311

  • HT3228 I set up my work e-mail on iphone.  When I try to send an e-mail, an error code says "Cannot Send Mail", "recipient rejected by server because it does not allow relaying".  What does this mean and how do I correct it?

    I set up my work e-mail account on my iphone 4S.  When I try to send an e-mail message from my phone, an error message occurs "Cannot Send Mail" - "recipient was rejected by the server because it does not allow relaying".  What does this mean and how do I correct it?

    Get the correct mail server settings from your IT department.

  • "Orphan Timeline" & "End Action Not Set." What does this mean????

    I am setting up a Blu-Ray DVD in Encore. I have a project on a Premiere Pro CS 5.5 Timeline, which is 2 and a half hours long with 24 Encore chapters in it. I have not yet Encoded it in Media Encoder as of yet.
    I am setting up all my menus and buttons in Encore so all I have to do is link the buttons to them main project when I do encode it and then I can just Check it and Burn it.
    I did check my project just now though and all buttons came up with 2 Errors:
    1) Orphan Timeline
    2) End action not set.
    1) "Orphan Timeline", I assume that means that the button is not linked to any timeline as of yet, correct? (This would be true because there is no main project timeline in there yet.)
    2) "End action not set." What does this mean? Will this go away once I add my whole project into Encore and I link up all of the buttons to the timeline?
    Thanks in advance
    Premiere Pro CS 5.5
    Encore 5.5
    Media Encoder 5

    1) Orphan Timeline
    2) End action not set.
    Both of these suggest that you created a timeline in the Encore project, perhaps with no "asset" in it.
    Yes, ignore both messages for now. But I prefer creating the timeline after, or along with, importing the asset into the Encore project.
    If you believe you have not created a timeline, post a screenshot of your "flowchart."

  • When attempting launch of photoshopcc,I get a box with "could not load the MMX core routines module because it does not work with this version of PS... what does this mean and how do I correct it?

    when attempting launch of photoshopcc,I get a box with "could not load the MMX core routines module because it does not work with this version of PS... what does this mean and how do I correct it?

    I did a search on my system and found the Photoshop has a fastcore plug-in.  Creative Cloud includes a subscription version of CS6 version 13.1.2.   I do not know if you installed that or not.  The cc un-install may have done something.  You may need to use Adobe Cleaner then Install The Perpetual CS6 version of Photoshop  CS6 version 13.0.6 Mac or Photoshop  CS6 version 13.0.1.3 PC and not the subscription CS6 extended version 13.1.2.  Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6   If you need to download the CS6 installer Download CS6 products.
    You may also be able to recover your cs6 using an old system backup
    fastcore.8bx on my system...

  • Trying to update iTunes but keep getting the error messag "the url could not be opened" when it's always worked fine in the past. What does this mean?

    Trying to update my iTunes but keep getting the error message "the URL could not be opened" what does this mean and how do I resolve this? It's always worked fine in the past!

    Select a broken track and press ctrl-i to Get Info. Look on the summary tab for the location where iTunes "thinks" the file should be. Where is it really? Post back the two locations and I can suggest the best approach.
    tt2

  • What does this error message mean and how do I solve it? "Sorry, one or more of the following command-line tools was not found:  /usr/bin/lsbom, /bin/pax, /bin/mkdir, /bin/chmod, or /usr/bin/update_prebinding."

    When I try to open up this program, Pacifist, I receive this error message. Here's a screenshot. http://i.imgur.com/v717w.jpg What does this error message mean and how do I solve it?

    It sounds like some of the Unix Executable commands were removed (or the permissions to those were modified) out of the /usr/bin/ folder.  You can try opening disk utility and repairing permissions on Macintosh HD or you can reboot your computer and holding down option-r when it comes back up to reinstall Lion again.  This will not delete your personal information or applications you have installed but it would be best to back it up to Time Machine before you do.  The article on how to do this is here. (http://www.apple.com/macosx/recovery/)  I have had to do this before and it works like a charm.  It should fix your issue but grab a cup of coffee because its going to take about 35 - 40 minutes depending on how fast your computer is.

Maybe you are looking for

  • Can't save query for fixed asset

    I'm using sqvi query and logical database ADB, and fields comp code, asset number, subnumber, cost center, planned ord. depreciation, ordinary dep. posted in current year, i can't save, it says: global syntax check Error in parameter PA_PGSEL Stateme

  • Strange behavior with System.out.println

    I was working with the following code: 1. public class DemoChar { 2. public static void main(String args[]) { 3. 4. char buf[] = new char[50]; 5. buf[0] = 'a'; 6. buf[1] = 'b'; 7. buf[2] = 'c'; 8. buf[3] = 'd'; 9. buf[4] = 'e'; 10. System.out.println

  • Purchased new iPod Touch and I want to give my older one to my daughter.

    I just purchased a new iPod Touch and want to give my older version to my daughter. What should I do before giving it to her. I've deleted my mobileme account and left all the apps, but I'd like to leave on the Find My iPod feature on since she is tr

  • Photosop 7.0 (Different in CS6)

    Just 1 question. I have a friend who is a photographer. He use PS 7.0, but he have "Auto Levels" CTRL + ALT + L. I use PS CS6 and under levels i have a few more auto "levels" CTRL + ALT + L (Last Settings) CTRL + Shift + L (Auto Tone) CTRL + Shift +

  • REP-1219: 'Margin' has no size -- length or width is zero.

    Hello guys Please help me out. In Report Builder 6i, I've created a report. It runs fine in Report Builder but when I run it in Oracle Apps R11.5.10 I get the error on the subject. Does anyone know how to resolve this error? Thank you in advance.