New Item Alert folder action?

I believe I need one of these...
I'm a photographer and will be shooting a job this weekend using a camera that will transfer images (jpegs) to my Powerbook as they're shot. That part works great.
What I want to do and haven't figured out is how is to display the images as they arrive at the laptop so my clients can see the photos as I'm shooting them. Assuming Preview as the app, I'd like to have an event handler attached to the incoming_folder do something like this:
when new_file arrives in incoming_folder
close any open Preview windows
have Preview display new_file
end
There should only be the most recent file open.
The problem I'm facing is that I don't have time to learn enough Applescript to pull this off in the next few days. Long-term I want learn Applescript, but I need a solution pronto.
Can someone help me with this?

Yes.  You don't necessarily need to edit the script, you just need to attach the Folder Action to each and every folder you want to watch.

Similar Messages

  • Add - new item alert for sub folder

    Hi There,
    I have 2 questions for Folder Action Script. Hope someone here can help me to resolve.
    1. How to get new item alert for sub folder (many subfolders inside the folder).
    2. It is possible to alert on item been removed or modified.
    Thanks in advance.

    You just need to add or change the folder action handler:
    on removing folder items from folderAlias after losing listOfAliasOrText
      # whatever
    end removing folder items from
    There are only a few folder actions available - for adding or removing folder items, closing or moving a folder window, and opening a folder.  See the AppleScript Language Guide.

  • Delaying folder action until file creation is complete

    I'm trying to create a folder action that takes the output of a bounce from ProTools and then imports it into iTunes. The problem I'm having is that it takes real time (about 20 min) to create the complete ProTools file in the folder, however the script begins to execute immediately, before the bounce is complete. This gives me 1 second of audio garbage.
    Is there any way to delay the folder action until the file creation (bounce, upload, transfer, whatever) is done?
    Thanks.

    V.K. Thanks again for your help. When I look in my folder directory/library/scripts/folder action scripts, I see many scripts for images as well as scripts for closing subfolders, converting to pdf, open - show comments in dialog, and add - new item alert, however I don't see anything that was created recently (i.e. something that was created when I built my Automator workflow (folder action). The closest (to what I am looking for) Folder Action Script could find was "add - new item alert.scpt", which is an existing Apple written script, but this will not really help me. When I created my initial automator script, it created a folder and file and workflow in my homefolder/library/Workflows/Applications/Folder Actions/xxx.workflow, however I cannot open this workflow in applescript. I even tried changing the extension to .scpt. I'm not sure I can accomplish the desired result with Automator alone, but I don't think I am well versed enough in AppleScript. Thanks for your help.

  • Folder actions: apple scripts translation possible?

    I wonder if the script to automate a folder action, (eg. "new item alert") could be translated into another language, that's to say, is it possible to change the english sentence "add item" into the italian "elemento aggiunto" ? I open the applescript editor but I don't dare to modify any sentence before some expert can reassure me about the safety of this operation.
    Thank you

    You should always work on a copy, or make a copy and store it elsewhere, in case you get into difficulties.
    As regards the alert script, you can modify anything appearing between double quotes: these pieces of text are the displayed items and won't affect the running of the script.

  • Help on moving specific files using folder actions

    so i want to move all downloaded files that have the extension .pdf to a folder in my docs but it doesnt always work and if i download 2 at once it fails. im new to applescripts so please help!
    this is what i have:
    on adding folder items to this_folder after receiving added_items
    tell application "Finder"
    repeat with all_items in this_folder
    if the name extension of any_item is "pdf" then
    move item to folder "Macintosh HD:Users:Campbell:Documents:Printing"
    end if
    end repeat
    end tell
    end adding folder items to

    As written, you are referring to different variables in your repeat loop for the added items (all_items, any_item, etc). The loop variable you define in the repeat statement is the one to use.
    Snow Leopard added a time delay to check if items are still being downloaded, but in Leopard you will need to do it yourself. The following script adds a wait handler that will wait for files to be downloaded (I also threw in a run handler for testing):
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into the Script Editor">
    property destination : "Macintosh HD:Users:Campbell:Documents:Printing"
    property someTime : 60 -- time (in seconds) to allow files to copy/download
    on run -- application double-clicked or run from the Script Editor
    set theFolder to (choose folder)
    tell application "Finder" to set theItems to files of theFolder as alias list
    adding folder items to theFolder after receiving theItems -- process entire folder contents
    end run
    on adding folder items to this_folder after receiving added_items -- folder action
    if (waitForFilesToCopy into this_folder for someTime) then
    doStuff for added_items
    else
    display alert "Folder Action error" message "File copy/download into folder " & quoted form of POSIX path of this_folder & " did not complete in the time allowed."
    end if
    end adding folder items to
    to doStuff for someFiles
    do stuff with each file in someFiles
    parameters - someFiles [list]: a list of files to do stuff with
    returns nothing
    repeat with anItem in someFiles
    tell application "Finder"
    if the name extension of anItem is "pdf" then
    move anItem to folder destination
    -- move anItem to (path to desktop) -- testing
    end if
    end tell
    end repeat
    end doStuff
    to waitForFilesToCopy into someFolder for timeToWait
    checks every interval seconds up to timeToWait for files to be copied/downloaded to theFolder
    the test is based on the size of the folder not changing after interval seconds
    parameters - someFolder [mixed]: the folder to check
    timeToWait [integer]: a maximum timeout value in seconds
    returns [boolean]: true if copy/download finished, false if timeout
    set interval to 2 -- adjust as desired
    set someFolder to quoted form of POSIX path of someFolder
    set currentSize to first word of (do shell script "du -s " & someFolder) -- get initial size
    repeat with timer from timeToWait to 1 by -interval
    delay interval
    set newSize to first word of (do shell script "du -s " & someFolder) -- recheck size
    if (newSize is equal to currentSize) then
    return true -- success
    else -- update size
    set currentSize to newSize
    end if
    end repeat
    return false -- timed out
    end waitForFilesToCopy
    </pre>

  • How to set up new fax alert?

    Is there any way to get an alert when a fax is received? I have set up an Apple script, specifically, a faxes folder alert using the "new items alert script" from the sample scripts, but it doesn't seem to do anything when a fax arrives and the pdf file ends up in the faxes folder.
    So, for now, I have to manually check the Faxes folder periodically to see if one has come in. Also, when I send a fax using the print pdf as fax method, it works, but there is no saved record of the fax.
    Do I have to buy a third party fax program to accomplish these things? If so, can anyone recommend something basic and cheap?
    Thanks.

    "You can have it email you. What kind of alert were you looking for?"
    Well, I got the Fax Alert, really a folder change alert, to work--a popup window that says I have a new file in the faxes folder--but apparently the "folder change alert" only works if you set it up for the folder in question each time you start or reboot the computer. There's no permanent or automatic folder alert, apparently.
    As for the email notification, yes, I have it set up that way, but it doesn't work because my SMTP server, whether Comcast or Earthlink or any other dynamic IP provider, rejects emails sent from an unrecognized IP (from my computer). The ISP /can/ set things up so that it will permit these to go through, but not on a residential account with a dynamic IP address. I would have to get a business, fixed IP at significantly more cost.
    I do wonder whether the Apple server would somehow allow this, but haven't been able to get it to work.

  • Folder Action Problems with Leopard 10.5.8

    My company recently upgraded from 10.4.11 to 10.5.8 and our folder actions have been stopping mid-process or not working at all. Sometimes a few files will process and then everything stops completely.
    Our workflow involves the use of several different hot folders that use folder actions (converting InDesign CS4 documents to various quality of PDFs). All of the actions are single stream, meaning each folder does the action it's assigned and the original file is trashed and the new file remains in the folder. There are no subsequent folder actions that pull from the newly processed files. We also only run one folder action (with several files dropped in it) at a time.
    I have also tried running a pre-made generic folder action script from Apple and it, too will stop mid-process, process a few files then stop, or not work at all.
    Does anyone know what might be causing this problem with either the new Applescript or Folder Actions with Leopard 10.5.8?

    I have several scripts that all work different ways. One script I have opens the InDesign document, exports a PDF to a different folder located elsewhere on the hard drive (where a different script searches for PDFs). After this the original document is sent to the trash. Nothing new is created in the original Folder Action Scripted folder.
    What's more, even Apple's stock Folder Actions don't work properly and stop mid-process. I've seen vague reports of 10.5.8 having issues with Applescript or Leopard in general. The fact this script works perfectly in 10.4.11 makes me think that something has changed with the way Leopard handles the FA's.

  • Automator Folder Action: File Name = Spotlight Comment?

    Hey guys,
    I'm trying to have automator add the original filename of a file as spotlight comment when it is added to a certain folder. I can only use the "Set Spotlight Comments for Finder Items" in folder actions to add a specified comment, but nothing else. Is it possible to grab the file name via applescript?
    The idea behind this is to preserve the original file names of all downloaded files before they get renamed.
    Thanks,
    V

    Thanks for your reply, I now have your action installed and it does get the filenames, but I still can't add them to the spotlight comment text box. Looks like I didn't think this through properly.

  • Folder Action + Move Finder Items = Zero KB files

    I've got a folder action set that is supposed to run the Automator Action "Move Finder Items" on any file that gets placed in a specific folder (called "Folder A") and move it to "Folder B". I'm having an issue with larger files though.
    As soon as I begin to transfer the file to "folder A" , the folder action runs and results in a "Zero KB" file in "Folder B".
    Is there any way to keep the Folder Action from triggering until the file has completely copied to the folder with the Folder Action attached ("Folder A")?
    A side note: I have this same folder action running on an iMac with Mac OS 10.6.3 and it works great . (This one was made with the newer version of Automator that shipped with 10.6 vs. Automator on 10.5 which made the action I am having trouble with)
    Any input would be appreciated!

    There is a check in *Snow Leopard* to see if the items have completed their copy/download, but Leopard does not do any checking - the script is triggered immediately. You can add your own delay with a *Run AppleScript* action, though, for example:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px; height: 340px;
    color: #000000;
    background-color: #DAFFB6;
    overflow: auto;"
    title="this text can be pasted into an Automator 'Run AppleScript' action">
    on run {input, parameters} -- wait for file copy to complete by testing the size of the containing folder
    set theFolders to {} -- to handle items in different folders
    set skippedItems to {}
    repeat with anItem in the input -- get a list of unique folders
    tell application "Finder"
    get (container of anItem) as alias
    if the result is not in theFolders then set the end of theFolders to the result
    end tell
    end repeat
    repeat with aFolder in theFolders
    set timeToWait to 30 -- time to wait for copy to complete
    set interval to 2 -- test every interval seconds
    set copied to false
    tell application "Finder" to set currentSize to size of aFolder -- get initial size
    repeat with timer from timeToWait to 1 by -interval -- check every interval seconds up to maximum time
    delay interval
    tell application "Finder" to set newSize to size of aFolder -- recheck size
    if (newSize is equal to currentSize) then
    set copied to true
    exit repeat -- success
    else -- update size
    set currentSize to newSize
    end if
    end repeat
    if not copied then set the end of skippedItems to quoted form of (aFolder as text) -- timed out
    end repeat
    showSkippedAlert for skippedItems
    return input
    end run
    to showSkippedAlert for skippedItems
    show an alert dialog for any items skipped, with the option to cancel the rest of the workflow
    parameters - skippedItems [list]: the items skipped
    returns nothing
    if skippedItems is not {} then
    set {alertText, theCount} to {"Error with waiting for items to copy", count skippedItems}
    if theCount is greater than 1 then
    set theMessage to (theCount as text) & space & " folders timed out"
    else
    set theMessage to "1 folder timed out"
    end if
    set theMessage to theMessage & " - copy of contents may be incomplete:"
    set {tempTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, return}
    set {skippedItems, AppleScript's text item delimiters} to {skippedItems as text, tempTID}
    if button returned of (display alert alertText message (theMessage & return & skippedItems) alternate button "Cancel" default button "OK") is "Cancel" then error number -128
    end if
    return
    end showSkippedAlert
    </pre>
    The action will check the folder sizes, and when there is no change (or the wait times out) the input items are passed on.

  • Folder Actions script no longer runs on new file creation

    Hope this isn't trivial.......first time posting here...hopefully in the right place.I'm not a total Mac OS X newbie...and surely no techie, either. Dabbled a wee bit with Automator and scratchin' my head on this one. Help, please!
    Any idea why folder actions not running when a new file is saved? A simple add-color-label script created in Automator was workin' fine before I did a Snow Leopard-to-Leopard downgrade clean-install & account migration from external HD (TimeMachine) backup. Folder actions are enabled and script runs only if I start it with Automator Runner. Previously, it would label the file as soon as I saved it....now it needs a manual start. Is this default behavior in Leopard? Or am I missing something or doin' something wrong? Or is this a consequence of downgrade? I was sure I had the same script workin ok in my original Leopard install - though possibly un-modified at that time.
    I have no clue why, but the new version I created recently (cpl wks ago?)worked the first time I added a new file but not thereafter...and in that instance it only labelled the file in Finder upon quitting Preview (file is a Grab saved as pdf).
    The reason for the downgrade was compatibility problems with Photoshop CS4 on SL (OS & app all updated yet crashin' at the drop of a hat) - maybe due to lack of RAM? (only 1GB). Saw quite a few posts regarding SL running CS4 problems, so now I'm back to running 10.5.8 ..again.. and PS actually runs smooth like it did before.
    Maybe these console messages are a help......or am I barkin' up the wrong tree?
    6/11/11 7:44:54 PM /System/Library/CoreServices/Folder Actions Dispatcher.app/Contents/MacOS/Folder Actions Dispatcher[91] CPSGetProcessInfo(): This call is deprecated and should not be called anymore.
    6/11/11 7:44:54 PM /System/Library/CoreServices/Folder Actions Dispatcher.app/Contents/MacOS/Folder Actions Dispatcher[91] CPSPBGetProcessInfo(): This call is deprecated and should not be called anymore.
    6/11/11 7:44:54 PM /System/Library/CoreServices/AppleScript Runner.app/Contents/MacOS/AppleScript Runner[264] CPSGetFrontProcess(): This call is deprecated and should not be called anymore. 
    6/11/11 8:19:12 PM Automator Runner[415] Error while processing arguments
    6/11/11 8:20:31 PM /Applications/AppleScript/Folder Actions Setup.app/Contents/MacOS/Folder Actions Setup[420] CPSGetProcessInfo(): This call is deprecated and should not be called anymore.
    6/11/11 8:20:31 PM /Applications/AppleScript/Folder Actions Setup.app/Contents/MacOS/Folder Actions Setup[420] CPSPBGetProcessInfo(): This call is deprecated and should not be called anymore.
    6/11/11 8:20:32 PM [0x0-0x5b05b].com.apple.systemevents[421] com.apple.FolderActions.enabled: Already loaded
    And for that matter....why does Automator throw these messages? All apps (except iWork '08 apps) and OS are up to date.
        - Just a few of the many actions not loaded:
    6/11/11 7:48:25 PM Automator[294] The action “Start iTunes Visuals” could not be loaded because the application “iTunes” is the wrong version.
    6/11/11 7:48:25 PM Automator[294] The action “Stop iTunes Visuals” could not be loaded because the application “iTunes” is the wrong version.
    6/11/11 7:48:25 PM Automator[294] The action “Update iPod” could not be loaded because the application “iTunes” is the wrong version.
    6/11/11 7:56:33 PM Automator[294] name = name was not found
    6/11/11 7:56:33 PM Automator[294] name = name extension was not found
    6/11/11 7:56:33 PM Automator[294] name = file type was not found
    6/11/11 8:00:29 PM Automator Runner[339] Error while processing arguments
    6/11/11 8:00:30 PM Automator Runner[339] The action “Import Files into iTunes” could not be loaded because the application “iTunes” is the wrong version.
    6/11/11 8:00:30 PM Automator Runner[339] The action “Add Songs to iPod” could not be loaded because the application “iTunes” is the wrong version.
    6/11/11 8:00:30 PM Automator Runner[339] The action “Add Songs to Playlist” could not be loaded because the application “iTunes” is the wrong version.
    6/11/11 8:00:30 PM Automator Runner[339] The action “Apply SQL” could not be loaded because the application “Xcode” was not found.
    Do I need to wipe the drive again and re-install everything?
    Any help is greatly appreciated. Apologies if this seems long-winded.

    Folder Actions are set up a bit differently in Leopard (they use an AppleScript wrapper), and several actions have been updated to use new technologies available in Snow Leopard.  Looking at some of your console logs, it looks like some actions or workflows were just copied over from Snow Leopard.  When changing versions like that, you should rebuild the workflows so that they link to the correct actions, and check added actions for any dependencies (an action won't be loaded if it requires resources that are not available).
    Resaving your Folder Action workflow as a Folder Action Plug-in should do the trick.

  • Alerts for item master change and new item creation

    hai experts
                       my manager has to get an alert when any update has been done in item master or when a new item master is created .

    Hi.........
    Check this query for alert.........
    Quaery for New Item Creation:
    SELECT T0.[ItemCode], T0.[ItemName], T0.[CreateDate] FROM OITM T0
    Where DateDiff(DD,T0.[CreateDate],GetDate())<2
    Query For Updation of Item:
    SELECT T0.[ItemCode], T0.[ItemName], T0.[UpdateDate] FROM OITM T0
    Where DateDiff(DD,T0.[UpdateDate],GetDate())<2
    Above two alerts will be coming for two days........
    Regards,
    Rahul

  • Rename, New folder action using Drive CMIS connector

    I am trying to work on "Rename" and "New Folder" actions from Drive. To give more details - when I connect to our DAM using Drive, the DAM gets mounted as a network drive and can be accessed from Windows Explorer. I was told on one of the Adobe forums thread that Drive uses the Windows in-built context menus to initiate these actions.
    Refer: http://forums.adobe.com/message/3807568#3807568
    But when I try "New Folder" menu, Explorer gives me "Access denied" or "You need permission" kind of error. On "Rename" I get similar error. I believe both these errors are due to the fact that I am trying to modify certain things on a network drive. But then what would be the work around so that I can perform these actions on a CMIS server using Drive?
    We are adding CMIS layer on top of our DAM so that it will work as a CMIS server. For connection with Drive, we use the default CMIS connector that comes with it.

    Logs on "Rename" action
    2012/09/28 05:34:58,691 [IFSConnection-1] FATAL IFSConnection - NASTY Runtime exception for Request: RENAME
    com.adobe.drive.biz.filesystem.FileSystemException: java.lang.NullPointerException
        at com.adobe.drive.internal.biz.filesystem.FileSystemService.run(FileSystemService.java:1680 )
        at com.adobe.drive.internal.biz.filesystem.FileSystemService.run(FileSystemService.java:1646 )
        at com.adobe.drive.internal.biz.filesystem.FileSystemService.rename(FileSystemService.java:9 81)
        at com.adobe.drive.ifs.job.RenameHandler$1.call(RenameHandler.java:95)
        at com.adobe.drive.ifs.job.RenameHandler$1.call(RenameHandler.java:1)
        at com.adobe.drive.model.context.Context.run(Context.java:88)
        at com.adobe.drive.ifs.internal.IFSConnection.dispatch(IFSConnection.java:187)
        at com.adobe.drive.ifs.internal.IFSConnection.run(IFSConnection.java:142)
    Caused by: java.lang.NullPointerException
        at com.adobe.drive.connector.cmis.client.CMISProxy.buildQuery(CMISProxy.java:2086)
        at com.adobe.drive.connector.cmis.client.CMISProxy.query(CMISProxy.java:1987)
        at com.adobe.drive.connector.cmis.client.CMISProxy.getDescendantDocuments(CMISProxy.java:196 1)
        at com.adobe.drive.connector.cmis.client.CMISProxy.hasCheckedOutDocumentsByAnyUser(CMISProxy .java:1920)
        at com.adobe.drive.connector.cmis.handler.Handler.isCheckedOut(Handler.java:305)
        at com.adobe.drive.connector.cmis.handler.MoveHandler.execute(MoveHandler.java:95)
        at com.adobe.drive.connector.cmis.handler.MoveHandler.execute(MoveHandler.java:1)
        at com.adobe.drive.internal.data.manager.DataManager.execute(DataManager.java:3162)
        at com.adobe.drive.internal.data.manager.DataManager.execute(DataManager.java:3114)
        at com.adobe.drive.data.manager.call.AbstractFSCall.executeConnector(AbstractFSCall.java:323 )
        at com.adobe.drive.data.manager.call.Move.callConnector(Move.java:501)
        at com.adobe.drive.data.manager.call.Move.moveRemoteSource(Move.java:302)
        at com.adobe.drive.data.manager.call.MoveFinder.moveToEmptyDestination(MoveFinder.java:83)
        at com.adobe.drive.data.manager.call.MoveExplorer.moveToEmptyDestination(MoveExplorer.java:7 0)
        at com.adobe.drive.data.manager.call.Move.execute(Move.java:142)
        at com.adobe.drive.internal.data.manager.DataManager.moveAsset(DataManager.java:3892)
        at com.adobe.drive.internal.biz.filesystem.FileSystemService$12.execute(FileSystemService.ja va:998)
        at com.adobe.drive.internal.biz.filesystem.FileSystemService$FSRunnable.run(FileSystemServic e.java:1803)
        at com.adobe.drive.data.internal.persistence.PersistenceRunner.run(PersistenceRunner.java:11 9)
        at com.adobe.drive.internal.biz.filesystem.FileSystemService.run(FileSystemService.java:1666 )
        ... 7 more
    Logs on "New folder" action
    2012/09/28 05:23:42,321 [IFSConnection-1] FATAL IFSConnection - NASTY Runtime exception for Request: CREATE
    com.adobe.drive.biz.filesystem.FileSystemException: com.adobe.drive.data.model.DriveException: Error creating directory
        at com.adobe.drive.internal.biz.filesystem.FileSystemService.wrapException(FileSystemService .java:1623)
        at com.adobe.drive.internal.biz.filesystem.FileSystemService.run(FileSystemService.java:1673 )
        at com.adobe.drive.internal.biz.filesystem.FileSystemService.create(FileSystemService.java:8 67)
        at com.adobe.drive.ifs.job.CreateHandler$1.mkDir(CreateHandler.java:204)
        at com.adobe.drive.ifs.job.CreateHandler$1.call(CreateHandler.java:183)
        at com.adobe.drive.ifs.job.CreateHandler$1.call(CreateHandler.java:1)
        at com.adobe.drive.model.context.Context.run(Context.java:88)
        at com.adobe.drive.ifs.internal.IFSConnection.dispatch(IFSConnection.java:187)
        at com.adobe.drive.ifs.internal.IFSConnection.run(IFSConnection.java:142)
    Caused by: com.adobe.drive.data.model.DriveException: Error creating directory
        at com.adobe.drive.internal.data.manager.DataManager.create(DataManager.java:4434)
        at com.adobe.drive.internal.biz.filesystem.FileSystemService$10.execute(FileSystemService.ja va:885)
        at com.adobe.drive.internal.biz.filesystem.FileSystemService$10.execute(FileSystemService.ja va:1)
        at com.adobe.drive.internal.biz.filesystem.FileSystemService$FSCallable.run(FileSystemServic e.java:1767)
        at com.adobe.drive.data.internal.persistence.PersistenceRunner.run(PersistenceRunner.java:11 9)
        at com.adobe.drive.internal.biz.filesystem.FileSystemService.run(FileSystemService.java:1666 )
        ... 7 more
    There might be something wrong with our implementation as well. But I am not able to figure out where lies the problem.

  • Synch New Items from a remote (HTTP) folder

    There is a radio show I like that posts their show to an HTTP folder each week and I would like to download it automatically every saturday morning.
    So I would like to a synch a folder with this remote folder (new items only though)
    I tried to set this up in automator but I have not been successful so far.
    Also if i could get my mac to come out of sleep to download the file that would be great but i dont know if it works like that?
    Any help would be appreciated.
    Thanks
    Chuck
    Message was edited by: CHUCKYYYYYYYYYYYYY

    Any one with ideas on this?
    Thanks
    Chuck

  • Folder action contextual menu item in Finder

    hi,
    I remember that when I first got my mac, the contextual menu in Finder would also include an item related to Folder Actions (don't remember the exact wording now). However, at some point of time, when I didn't find folder actions to be really useful to me, I think I must have made some change somewhere, and now the said item doesn't appear in the contextual menu anymore.
    Though I do run Folder Action Setup.app and have set up actions for some specific folders, I would rather want this contextual menu item back, so that I can directly enable Folder Actions in/for a folder w/o having to invoke the setup.app.
    Hope someone can help out.

    If the 'FolderActionsMenu.plugin' is not in the /System/Library/Contextual Menu Items folder you can download a copy here.
    <http://tomx.890m.com/FolderActionsMenu.dmg>
    If that's the case, after you install the plugin Repair Disk Permissions with your Disk Utility and Restart.
    Good luck,
    Tom

  • Folder action - rename & colorize new files

    Hello,
    to help myself handling / managing my incoming aka download folder i am trying / willing to write a script which does some automated tasks for me.
    a) unquarantine (solved)
    b) rename - add date/time(yyyymmdd) in front of the filename (open)
    c) label them with colors (open)
    *General question:*
    Well right now i am wondering about some general points first:
    Is it better to split that into 3 sep. folder actions scripts which would be attached to the same folder ... .no idea if that may result in problems regarding which script goes first.... or should i add it to a single script ?
    *Regarding a)*
    i found this post here:
    http://henrik.nyh.se/2007/10/lift-the-leopard-download-quarantine
    on adding folder items to thisFolder after receiving addedItems
    repeat with anItem in addedItems
    set anItem's contents to (quoted form of POSIX path of (anItem as alias))
    end repeat
    set AppleScript's text item delimiters to " "
    do shell script "xattr -d com.apple.quarantine " & (addedItems as text)
    end adding folder items to
    which explains an unquarantine routine ... works pretty good. I have just added a growl routine at the end for my personal use
    *Regarding b)*
    I'm not really sure how to handle the date_idea in applescript. I know i could use "do shell script" and save the output of date to a variable but i hope there are better methods to get the name in my desired format (yyyymmdd)
    And how would you realize the rename-action itself in applscript ?
    *Regarding c)*
    I guess "set label index of myFile to 1" is the correct comd here for Finder. Or would you suggest any other method ?
    any help is appreciated
    best regards
    fidel

    Is it better to split that into 3 sep. folder actions scripts which would be attached to the same folder ... .no idea if that may result in problems regarding which script goes first.... or should i add it to a single script ?
    A single script, for sure.
    If you have three separate scripts you will encounter a race condition were all three scripts are trying to run at once. This is asking for trouble, especially when one of the scripts renames the file making it impossible for the others to find it (e.g. they start off looking for 'download.doc' but by the time they do their thing that file has been renamed and no longer exists).
    i found this post here:
    (snip)
    That code, as written is fatally flawed. I can't believe it works.
    First of all it starts off by looping through the addedItems, which is fair enough, but it doesn't do anything worthwhile within the loop - It just converts anItem to a POSIX path, but doesn't do anything with the result. It goes on to set the text item delimiters, but doesn't restore them later.
    Finally it calls do shell script, but not in a way that will work. You cannot pass addedItems as-is because it is not in a format that will work in the shell.
    I'm not really sure how to handle the date_idea in applescript. I know i could use "do shell script" and save the output of date to a variable but i hope there are better methods to get the name in my desired format (yyyymmdd)
    Ironically I would go for a shell-based approach to get the date, mainly because simple date formatting like this is far easier in the shell than in AppleScript (it can be done in AS, but takes multiple lines of code).
    I guess "set label index of myFile to 1" is the correct comd here for Finder. Or would you suggest any other method ?
    set label index is the way to go, for sure.
    So putting the above together you'll end up with something like:
    on adding folder items to thisFolder after receiving addedItems
      set theDate to do shell script "date +%Y%m%d"
      repeat with anItem in addedItems
        do shell script "xattr -d com.apple.quarantine " & (quoted form of POSIX path of (anItem as alias))
        tell application "Finder"
          set label index of anItem to 1
          set name of anItem to (theDate & (name of anItem as text))
        end tell
      end repeat
    end adding folder items to

Maybe you are looking for

  • Syncing ICal on different computers by Ipod

    hi, I am attempting to synch calendars on different Macs. My Ipod only writes data onto the Mac (but does not receive from it). To truly 'synchronize', I would need my Ipod to send AND receive new calendar events and address book items so both comput

  • Photos show as pdf's-Help Please!!

    All my photo files show up as PDF'S. The icons for all the photos on my hard drive are pdf's. ( the red adobe icon) This includes e-mails of word docs- they also must be opened with adobe reader.. I have to save as-then open with Adobe reader in orde

  • Form submitted in frame opens in new tab

    We have a series of pages in a frameset that has worked fine since the Netscape 4 days. The layout is basically a header, left menu, content area, and an option bar at the bottom. The problem occurs when we have a form in the content frame. When the

  • Oracle Certification Exam Design (Part 2) - OCA, OCP, and OCE Exams

    In this second part of a three-part series, Joel Goodman shares about how our Oracle Certified Associate (OCA), Oracle Certified Professional (OCP), and Oracle Certified Expert (OCE) certification exams are designed and developed. h4. Oracle Certific

  • Adobe Encore quits unexpectedly

    Process:               Adobe Encore [43004] Path:                  /Applications/Adobe/*/Adobe Encore CS6.app/Contents/MacOS/Adobe Encore Identifier:            com.adobe.Encore Version:               6.0.1 (6.0.1) Code Type:             X86-64 (Nati