HT2488 renaming subfolders based on parent folder name

I have several hundred folders, each containing a number of subfolders.  I would like to create a workflow that will rename the subfolders so they contain the name of the parent folder.  No luck thus far...

Many of the subfolders do contain subfolders of their own -- I want to keep those in the subfolders they're currently in, but not rename them.  In otherwords they should move with the subfolder in question with no changes.
This is a bit murky.
So you have
New York
- Images
- History
- Things to do
and possibly
Boise
- Images
     - Nice Images <<<<<<
- History
- Things to do
So how does that work out in the final set up?
Like this
Images
- Nice Images <<<<<<
- New York
- Boise
History
- New York
- Boise
Things to do
- New York
- Boise
or
Images
- New York
- Boise
     - Nice Images <<<<<<
History
- New York
- Boise
Things to do
- New York
- Boise
It's getting a bit evolved. Recreating the hirearcy isn't to much of a problem, moving the subfolders of the subfolders requires some thought.
Message was edited by: Frank Caggiano - Also how much help do you need here, how much Applescript do you know? Do you just need some ideas to get going or do you need more than that?

Similar Messages

  • Automator/Applescript to Rename files when dropped in folder based on parent folder name

    When a file is dropped in a folder ( ParentFolder/Folder/File.pdf )
    I want to rename the file to ParentFolder_Folder_01.pdf
        --Get folder
        --Get ParentFolder
        --Check for next available number and use it.
        If ParentFolder_Folder_01.pdf exists, try _02
    I automator, I have chosen folder action
    Added 'Get selected finder items'
    I have attempted to modify another sript I found here to no avail.
    on run {input, parameters}
        tell application "Finder"
            set theFolder to input as string
            set theNameOfFolder to name of folder theFolder
            set theFiles to every file in folder theFolder
            set theFolders to every folder in folder theFolder
            my ProcessFiles(theNameOfFolder, theFiles)
            my ProcessFolders(theFolders)
        end tell
    end run
    to ProcessFolders(theFolders)
        tell application "Finder"
            repeat with thisFolder in theFolders
                set theNameOfFolder to name of thisFolder
                set theFiles to every file in thisFolder
                set theFolders to every folder in thisFolder
                my ProcessFiles(theNameOfFolder, theFiles)
                my ProcessFolders(thisFolder)
            end repeat
        end tell
    end ProcessFolders
    to ProcessFiles(NameOfOuterFolder, theFiles)
        tell application "Finder"
            repeat with thisFile in theFiles
                set theSuffix to my grabSuffixOfFile(name of thisFile)
                set name of thisFile to NameOfOuterFolder & "_" & theSuffix
            end repeat
        end tell
    end ProcessFiles
    to grabSuffixOfFile(theFile)
        set text item delimiters to "_"
        return (text item 2 of theFile)
        set text item delimiters to ""
    end grabSuffixOfFile

    Normally it is a bad idea to do things with items that are in the attached folder (earlier OS versions will retrigger folder actions when an item is renamed, for example), and you don't need to use a Get Selected Finder Items action since the dropped items are already passed to your workflow (also note that the input items will be a list).
    It looks like you are trying to use multiple passes to add on the folder names, but you will have less of a headache if you build the base name and just deal with the number suffix.  If I understood your naming scheme correctly, the following script should do the trick - it isn't very fast, but should be OK for a few items at a time.
    on run {input, parameters} -- rename input Finder items (aliases) to name of containing folders
      set divider to "_" -- the divider character between name pieces
      set output to {} -- the result to pass on to the next action
      set counter to "01" -- start suffix at one
      repeat with anItem in the input -- step through each item in the input
      set anItem to contents of anItem -- dereference
      tell application "Finder" to if class of item anItem is document file then -- don't mess with folders or applications
      set {itemParent, itemExtension} to {container, name extension} of anItem
      if itemExtension is not "" then set itemExtension to "." & itemExtension
      set grandParentName to name of container of itemParent
      set parentName to name of itemParent
      set newName to grandParentName & divider & parentName & divider & counter
      set documentNames to my getExistingNames(itemParent)
      repeat while newName is in documentNames -- increment counter suffix as needed
                                            set counter to text -2 thru -1 of ("0" & (counter + 1))
      set newName to grandParentName & divider & parentName & divider & counter
      end repeat
      set name of anItem to (newName & itemExtension)
      set end of output to anItem -- alias still refers to the same file even after renaming
      end if
      end repeat
      return the output
    end run
    to getExistingNames(someFolder) -- get base document names (no extensions) from a folder
      set nameList to {}
      tell application "Finder" to repeat with aFile in (get document files of someFolder)
      set {fileName, fileExtension} to {name, name extension} of aFile
      if fileExtension is not "" then set fileExtension to "." & fileExtension
      set fileName to text 1 thru -((count fileExtension) + 1) of fileName -- just the name part
      set end of nameList to fileName
      end repeat
      return nameList
    end getExistingNames

  • How do I make this Applescript dig trough All subfolders of the Parent folder?

    Im using a script to batch convert a bunch of m4v´s to a set framesize, and im using this script with automator as a Finder Service. However, if theres a folder inside my parentfolder (Omkodning) with its own folder, it doesn't look inside that folder. Since my heriarchi is deeper then just one folder, this script isn't working all the way. How do I change it to search the entire content of my parent folder (Omkodning), subfolders and the missing part, sub-subfolders ?
    --on adding folder items to this_folder after receiving these_items with timeout of (720 * 60) seconds tell application "Finder" --Get all m4v files that have no label color yet, meaning it hasn’t been processed set allFiles to every file of entire contents of ("FIRSTHD:Users:jerry:Desktop:Omkodning" as alias) whose ((name extension is "m4v") and label index is 0) --Repeat for all files in above folder repeat with i from 1 to number of items in allFiles set currentFile to (item i of allFiles) try --Set to gray label to indicate processing set label index of currentFile to 7 --Assemble original
    and new file paths set origFilepath to quoted form of POSIX path of (currentFile as alias) set newFilepath to (characters 1 thru -5 of origFilepath as string) & "mp4'" --Start the conversion set shellCommand to "nice /Applications/HandBrakeCLI -i " & origFilepath & " -o " & newFilepath & " -e ffmpeg4 -b 1200 -a 1 -E faac -B 160 -R 29.97 -f mp4 –crop 0:0:0:0 crf 24 -w 640 -l 480 ;" do shell script shellCommand --Set the label to green in case file deletion fails set label index of currentFile to 6 --Remove the old file set shellCommand to "rm -f " & origFilepath do shell script shellCommand on error errmsg --Set the label to red to indicate failure set label index of currentFile to 2 end try end repeat end tell end timeout --end adding folder items to
    Message was edited by: Jayboys

    Telling the Finder to get the entire contents of a folder will also get the contents of subfolders (unless they are aliases).
    Note that the attached folder and the items that were added are passed to the adding folder items to handler in the this_folder and these_items parameters.

  • Is There An Extension that Renames Layers Based on Movie Clip Names of Files

    Hi all,
    I was wondering if anyone knew of an extension that could
    rename layers on the main time line based on the movie clip names
    that are found on the time line. I have a client file that is
    absolutely huge but all the layers are just named Layer followed by
    random numbers.
    I have seen extensions that clean up the library but never
    one that cleans layer names.

    fcastro75,
    > Sounds great! I was actually thinking about this over
    the
    > weekend and asking a few fellow flashers what they
    though.
    > I think instance names should have the highest
    importance. [...]
    If you're still watching this thread, I have a few more
    questions for
    you. :) I finally have some time to play with this script,
    and there's a
    twist I didn't think of earlier.
    Here's how JSFL works in regard to your particular aim:
    a) Get the current timeline.
    b) Get the layers of that timeline.
    c) Get the *frames* inside each layer.
    d) Get the elements inside each frame.
    The twist is C, and it adds considerable complexity to this
    script. You
    might have a layer with 100 frames on it, and each frame has
    a different mc
    (or graphic, or text field, etc.) on it. What on earth should
    this layer be
    named? In your previous post, you suggested this:
    > Layers that have multiple instances should read
    multi-item.
    That may well mean that feasibly half of your layers say
    "multi-item" in
    then, even if a given layer only has two separate items on it
    (one graphic
    symbol spanned from frames 50 to 80, and another graphic
    symbol spanned from
    frames 200 to 550).
    Even if we were to increment the names of these, you could
    easily get 30
    layers in a row named "multi-item (1)", "multi-item (2)",
    "multi-item (3)",
    and so on. Seems to me like that wouldn't be any more helpful
    than what you
    have now.
    One approach -- much easier to program, as it happens --
    would be to
    simply stop at the first frame in a layer that has content at
    all, and name
    the layer after that.
    e.g.
    "instanceName" (moveiclip) [1]
    ... where "instanceName" is the element's instance name,
    (movieclip) is the
    element's type, and [1] is the occurence of that element. If
    that layer
    contains any additional content -- either on that frame, or
    subsequent
    frames, we could add that "multi-item" phrase, like this:
    "instanceName" (moveiclip) [1] multi-item
    This way, in cases where the designer only used on element
    in a layer,
    you'd get a meaningful indication of that. In cases where the
    designer used
    several, you'd at least get an indication of the first one,
    with a hint that
    others exist.
    Whatcha think?
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Use Powershell Command to Search A Folder Then Move Any Subfolders and Where The Folder Name Contains "ARC"

    Hi All,
    As a complete novice to the powershell world I am looking for some direction in a script to manage my work project data lifecycle.
    I have a share on our production server (\\PROD1\Projects) which contains folders starting 99ENGXXX that contains project work, when staff rename the folder to ARC99ENGXXX, I am trying to work out a powershell command to move the folder and its contents
    to a share on a archive server (\\ARC01\Projects). Both are windows servers.
    Any help would be greatly appreciated!
    Sammy

    Try this (Assumes you are running at least PowerShell V3):
    Get-ChildItem "\\PROD1\Projects" -Recurse -Filter "ARC*" -Directory |
    Move-Item -Destination "\\ARC01\Projects"
    Boe Prox
    Blog |
    Twitter
    PoshWSUS |
    PoshPAIG | PoshChat |
    PoshEventUI
    PowerShell Deep Dives Book

  • Bridge looses cache folder tree window when I rename parent folder

    I managed to activate the code to change the name of the parent folder containing some images (I put an underscore before de parent folder name).
    When I did it by hand, the folder and subfolders I was navigating on were visible on the folder window (left side)
    But I lose the navigation of folders in the left window when I do exactly the same by code.
        var newPath = decodeURI(Path.parent)+"/_"+name;
        var bt = new BridgeTalk();
        bt.target = "bridge";
        // as acções do bridge contêm 1. colocação do _   2. label  3. organização dos ficheiros por tipo
        bt.body = "app.document.thumbnail =Folder('"+newPath+"').fsName;";
        bt.send(8);
        bt.pump();
    ... and the left navigation desapears...
    Is there same cache loosing problem? Can I recreate the last folder navigational window some how with code?

    I can't believe I found it, but it works and it is simple.
    At the same time, I spent 2 years using Bridge the wrong way and if I had an Adobe Bridge dev here, I wouldn't be very happy.
    Why Adobe simply can't give straight and direct answers like this case?
    When i rename a app.document.presentationPath, I usually returned to its parent folder on first place and then refresh() this one.
    Then I would go back to the new renamed folder.
    Problem:
    The 'Content' panel was OK and refreshed but the 'Folders' panel was not: the last non-renamed folder was still there and I always needed to close its parent folder on 'Folder' panel, click F5, and reopen making that ghost folder to disappear.
    The solution is simple and logical but sadly it took 2 years for me to solve it.
    I only needed to start dealing with the node string containing a fully qualified Bridge URI (uniform resource identifier).
    For example:
    var origin = Folder(app.document.presentationPath);
    var renamedFolderName = 'v_'+ Folder(app.document.presentationPath).name;
    app.document.thumbnail = new Thumbnail(new Folder(app.document.presentationPath).parent); // back to parent folder
    Folder(origin).rename(renamedFolderName ); // renaming
    app.document.thumbnail.refresh(); // refreshing the parent folder
    app.document.thumbnail = new Thumbnail(new Thumbnail(Folder(Folder(origin).parent + "/" + renamedFolderName ).fsName).uri); // the uri is the node (fully qualified Bridge URI)
    And... the 'Folders' panel was updated correctly and the ghost folder vanished!

  • Make rename by parent folder script recursive

    I've found this AppleScript in the Forum and it does exactly what I need, except it is not recursive:
    tell application "Finder"
              set the_folder to name of window 1
              repeat with this_file in (get files of entire contents of target of window 1)
      --repeat with this_file in (get files of window 1)
                        set the_start to offset of "_" in ((name of this_file) as string)
                        set the_stop to count (name of this_file as string)
                        set name of this_file to (the_folder & (items the_start thru the_stop of (name of this_file as string)))
              end repeat
    end tell
    tell application "Finder"
              repeat with this_file in (get files of entire contents of target of window 1)
                        set the_folder to (name of parent of this_file as string)
                        set the_start to offset of "_" in ((name of this_file) as string)
                        set the_stop to count (name of this_file as string)
                        set name of this_file to (the_folder & (items the_start thru the_stop of (name of this_file as string)))
              end repeat
    end tell
    Instead of passing window 1, I would like to apply the script to each sub folder of a given folder, but I have no idea of how to achieve that. Any help?

    You should check out MacScripter
    They have a lot of applescripts for solutions like that.
    If you can't find a solution with Applescript, you should try Automator.
    The below will do what you want. If you just save this workflow as a Service, all you have to do is right-click it and click the service and it will rename all the files by added the Parent Folder name in front of the file names.
    Good luck.

  • Accent in the file name or folder name

    Hi You guy,
    I am encountering the problem about an accent in the parent folder name of the applet that if i put an accent in the folder name after that the applet cannot be loaded onto the browser. I am not sure if i put not only accents but also putting there Japanese or Korean characters what happens then?
    So if all you guy have any sepecification documents/solutions/explainations about it please share me asap.
    Thank you very much.
    Tan

    Can you please update to the latest version of Adobe Reader available i.e. 10.1.4 (By clicking on Help > Check For Updates from within the Reader application). This should fix your issue.

  • Need a script to do the following... rename files based on folder name...

    Hi. Macophile just starting to tread the waters of Applescript, trying to use Automator but don't think it will do what I need.
    I have many images stored with-in folders that I would like to extrapolate a given number of characters from the folder name and Add Text to the files within those given folders.
    Basically...
    Folder name is C00100_Descriptive
    Files within folder are just Descriptive_01, Descriptive_02
    Would like to make all files within a given folder take the first 7 characters from the folder and Add that text to all files and files within subfolders of that folder to make the resulting files shown as...
    C00100Descriptive01
    C00100Descriptive02
    Along with this I would also like to incorporate into the script, an added step to create Thumbnail jpegs of the image files in a Subfolder under C00100_Descriptive folder.
    I can see how to do that in automator but not specifying parameters such as taking a certain number of characters from the folder the file resides in and adding that selected text to the files.
    Ideally I would like a droplet or something that I could take a bunch of folders and drop them on the droplet to perform these actions.
    Any advice, help or guidance would be really helpful! Thanks in advance.

    Awesome, you're quite welcome, glad to hear it worked for ya!! Here's another version of the script that will rename the thumb files as jpg...
    <pre style="width:630px;height:auto;overflow-x:auto;overflow-y:hidden;"
    title="Copy this code and paste it into your Script Editor application.">on run
    set theItems to choose folder with multiple selections allowed
    open (theItems)
    end run
    on open (itemList)
    repeat with anItem in itemList
    set theInfo to info for anItem
    --VERIFY THAT THE OPENED ITEM IS A FOLDER
    if folder of theInfo and not package folder of theInfo then
    --SET PATH TO THE FOLDER
    set theFolder to POSIX path of anItem
    --GET FIRST PART OF FOLDER NAME
    set folderNameStart to do shell script "echo " & ¬
    quoted form of (name of theInfo) & "|awk -F'_' '{print $1}'"
    --GET ALL FILE NAMES
    set fileList to list folder anItem without invisibles
    --PROCEED IF FOLDER NOT EMPTY
    if fileList is not {} then
    --SET PATH TO THUMBNAIL FOLDER
    set thumbFolder to theFolder & "_thumbs/"
    --CREATE FOLDER IF IT DOESN'T ALREADY EXIST
    try
    do shell script "mkdir " & quoted form of thumbFolder
    end try
    --PROCESS FILES
    repeat with fileName in fileList
    --SET PATH TO CURRENT FILE
    set oldFile to theFolder & fileName
    --PROCEED IF FILE IS NOT A FOLDER
    set oldFileInfo to info for POSIX file oldFile
    if not folder of oldFileInfo then
    --SET NEW FILE AND THUMB FILE PATHS
    set newFileName to folderNameStart & "_" & fileName
    set newFile to theFolder & newFileName
    set theExt to name extension of oldFileInfo
    set thumbName to text 1 through -((length of theExt) + 1) of newFileName & "jpg"
    set thumbFile to thumbFolder & "thumb_" & thumbName
    --RENAME FILE
    do shell script "mv " & quoted form of oldFile & space & ¬
    quoted form of newFile
    --CREATE THUMBNAIL
    --REPLACE '128' WITH MAX HEIGHT OR WIDTH OF THUMB
    try
    do shell script "sips -s format jpeg -s dpiHeight 72 -s dpiWidth 72 -Z 128 " & ¬
    quoted form of newFile & " --out " & quoted form of thumbFile
    end try
    end if
    end repeat
    end if
    end if
    end repeat
    end open</pre>

  • Looking up Admin Folder ID based on folder name

    I need to lookup the folder ID based on the name, regardless of which level of parent folder it resides on. I can't seem to do this using an object manager. What's the easiet way to accomplish this regardless of the admin folder level? I'd really appreciate any sample code.
    Thanks.
    Vanita
    Staples

    get an IPTAdminCatalog object from IPTSession:
    IPTSession.GetAdminCatalog()
    then get the root folder off IPTAdminCatalog:
    IPTAdminCatalog. GetRootAdminFolder()
    then call IPTAdminFolder.QuerySubfolders() with an appropriate query filter limiting to a certain name.
    Here's the javadocs on QuerySubfolders():
    QuerySubfolders
    public IPTQueryResult QuerySubfolders(int lPropIDMask,
                                          int lDepth,
                                          int vOrderBy,
                                          int lSkipRows,
                                          int lMaxRows,
                                          java.lang.Object[][] vQueryFilter)
        Queries the subfolders. This can be immediate (depth 0 or child depth 1).
        Parameters:
            lPropIDMask - prop ids to query
            lDepth - 0 or 1
            vOrderBy - can be an Object[][] with 2 columns and one row. The first column holds the property ID to order by, from PT_PROPIDS. The second column holds the order to order, from PT_ORDERBY_SETTINGS
            lSkipRows - number of rows to skip at the beginning, or 0 for none
            lMaxRows - maximum number of rows to return, or -1 for all
            vQueryFilter - is a 2D array with 3 columns. The first column holds the property id, from PT_PROPIDS. The second column holds the operator, from PT_FILTEROPS. The third column holds the value to be matched.
        Returns:
            IPTQueryResult

  • Remove parent folder and all subfolders (custom info panels)

    I'm writing a script to help users install custom info panels in the Folder.userData + '/Adobe/XMP/Custom File Info Panels/3.0/panels' location.  I have a working script to copy files, but I also want to delete previous versions of the same info panel.   I also want to allow for the possibility that could be several older versions so I need to loop through them.  I know that I need to empty the files of a folder before it can be removed.  I can remove one instance of a ninfo panel, but not several - I'm having trouble getting the function to loop.
    For example, if I have two old info panel version to delete (myPanel_v1 and myPanel_v2) can use getFiles (myPanel*) to get an array with the names of the two parent folders:
    ~/AppData/Roaming/Adobe/XMP/Custom%20File%20Info%20Panels/3.0/panels/myPanel_v1,~/AppData/ Roaming/Adobe/XMP/Custom%20File%20Info%20Panels/3.0/panels/myPanel_v2
    What I can't do is the loop through the subfolders and their contents based on the index of this array.  Perhaps there is a completey different approach I need to take?
    The code below does remove a single instance of my custom ino panel, but I can't figure out a way to make it loop.
    var CS5panelsFolder = (Folder.userData + '/Adobe/XMP/Custom File Info Panels/3.0/panels');
    var xmask = 'myPanel*'
    var xRemove =  (Folder (CS5panelsFolder).getFiles (xmask));  // returns an array with all folders with 'VRA_beta' in the name
    for (var i = 0; i < xRemove.length; i++) var xBin = (Folder (xRemove[i]+'/bin').getFiles());
    for (var i = 0; i < xRemove.length; i++) var xLoc = (Folder (xRemove[i]+'/loc').getFiles());
    for (var i = 0; i < xRemove.length; i++) var xRes = (Folder (xRemove[i]+'/resources').getFiles());
    for (var i = 0; i < xRemove.length; i++)
        //Loop through array of xBin files and remove them
        for (var i = 0; i < xBin.length; i++) File(xBin[i]).remove();
        //Loop through array of loc files and remove them
        for (var i = 0; i < xLoc.length; i++) File(xLoc[i]).remove();
        // Loop through array of resource files and remove them
        for (var i = 0; i < xRes.length; i++) File(xRes[i]).remove();
        // remove manifest file
        for (var i = 0; i < xRemove.length; i++) File(xRemove[i]+'/manifest.xml').remove();
    for (var i = 0; i < xRemove.length; i++)
    // Remove now empty xBin folder
        for (var i = 0; i < xRemove.length; i++) Folder(xRemove[i]+'/bin').remove();
    // Remover now empty loc folder
        for (var i = 0; i < xRemove.length; i++) Folder(xRemove[i]+'/loc').remove();
    // Remove now empty resources folder
        for (var i = 0; i < xRemove.length; i++) Folder(xRemove[i]+'/resources').remove();
    // Remove now empty old version folder
        for (var i = 0; i < xRemove.length; i++) Folder(xRemove[i]).remove();
    Thanks for your help,
    Greg Reser

    I now have this code that works:
    var W = 'Base Folder Name';
    var X = Folder(W).getFiles();
    for (var Q1 = 0; Q1 < X.length; Q1++)
       if (X[Q1] instanceof Folder == true)
         var Y = Folder (X[Q1]).getFiles();
         for (var Q2 = 0; Q2 < Y.length; Q2++)
           if (Y[Q2] instanceof Folder == true)
             var Z = Folder (Y[Q2]).getFiles();
             for (var Q3 = 0; Q3 < Z.length; Q3++) File (Z[Q3]).remove();
             Folder (Y[Q2]).remove();
           else File (Y[Q2]).remove();
         Folder (X[Q1]).remove();
       else File (X[Q1]).remove();
    Folder(W).remove();

  • Automator and applescript to copy new files in a folder with same name as parent folder

    I have an iMac with a pictures folder (Finder folder) containing several subfolders with pictures. As per now, all these subfolders are imported into an iPhoto library (and the structure of the Finder pictures folder is thus maintained: The iPhoto events are named the same as the Finder subfolder). I.e. I have not created any albums in iPhoto.
    I have also set up a workflow, where new iPhone photos are automatically being synced to specified Finder folders within the iMac pictures folder. So what I want to do is to make a workflow to import potential new photos from week to week into the existing iPhoto structure. I know iPhoto has this Autoimport folder, so this one is unpacked and "mapped". So, this is what I´m hoping to do:
    Automator (iCal - want to do this on a weekly basis):
    - Get specified Finder items -- set to target folder = iMac pictures folder
    - Get folder content (with subfolders)
    - Filter Finder items
         - Items from the last 7 days (which then would be any new files created last week)
    - Applescript/shell script loop(?)
         - Get folder name for each file´s (from previous step) parent folder
         - Create new folder with same name as the file´s parent folder (if not already existing) under the iPhoto Autoimport folder
         - Copy the given file into the folder from above
    - Run iPhoto application (Automator task), which then should just auto import the new photos according to the Finder folder structure
    Whith the workflow above, I aim to maintain the existing iPhoto structure, and just import new photos into the existing structure. Creating folder names under the Autoimport, similar as the existing Finder folder names / iPhoto events should make it possible to have the new files imported under the existing event, right?

    Anyone?
    I have now switched to Aperture (from iPhoto) due to Aperture´s capability to handle Finder folder structure, and due to the possibility of having the pictures within Aperture as referenced files to the pictures within the Finder folders (i.e. possibility to delete pictures from both library and Finder folder at the same time).
    So I have a superior Finder folder called "Album". Within "Album" I have several subfolders (sub albums) containing pictures. The "Album" folder with subfolders are imported into Aperture as "Projects and albums", and the pictures are uploaded within the Aperture structure as referenced files. So for now the Aperture structure is more or less a direct mirror of the Finder folder structure, whereas "Album" is the project.
    And this is my current workflow in Automator, but I´m searching help with my Applescript:
    - Get specified Finder items (target folder = the superior Finder folder "Album")
    - Get Folder content
    - Filter Finder items (to look for potential new files to import into Aperture)
         - Kind is not folder
         - Date created last X days
    The output files from this task enters an Applescript
    on run {input, parameters}
           repeat with f in input (**Loop**)
                   tell application "Finder"
                          set fileName to name of (f)
                          set parentFolder to name of container of (f)
                          tell application "Aperture"
                                 tell library 1
                                        tell project "Album"
                                               if (exists album parentFolder) then
                                                 ** I then would like to check if fileName already exist within the existing album**
                                                 ** If not existing, I would like to import file f into the existing album as a referenced file**              
                                               else if not (exists album parentFolder) then
                                                       make new album with properties {name:parentFolder}
                                                ** I then would like to import file f into the new album as a referenced file**
                                               end if
                                        end tell
                                 end tell
                          end tell
                   end tell
           end repeat
    end run

  • List subfolders in parent folder view

    Hi all,
    in a XY workspace i have simple folder hierarchy created in Teaming 2.1: 3 subfolders (SF1, SF2, SF3) are in parent folder (PF). When i click on PF in navigation bar, content of PF folder is displayed. Problem is, there are just File entries displayed but not subfolder displayed. I could enter subfolders only by clicking on + sign in navigation tab. Is there any possibility to modify folder view to display subfolders together with file entries?
    Thanks in advance,
    Stanley

    sbocinec,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://forums.novell.com/

  • Cannot save a bookmark to NEW folder - FF wants me to rename EXISTING parent folder

    I cannot save a bookmark to a new folder. This is the path I am taking from the main menu:
    Bookmarks | Bookmark This Page
    Click the drop-down arrow to the right of Folder
    Select Choose
    Scroll to the parent folder in which I would like a new subfolder
    Click New Folder
    Then, instead of creating a new folder as it always did in the past, it highlights the parent folder for editing. If I type in a new folder name, the parent folder is changed to that new name. A new subfolder is created with the name New Folder.
    Things I have already tried that did *not* resolve the problem:
    - Deleting and then restoring bookmarks from a saved bookmark backup file.
    - Running the Add-On "Places Maintenance"
    - Rebuild "Places" database
    I have not yet reset Firefox or created a new profile but can try that if you gurus think that would help.
    I am using FF 32.0.2 on Win XP SP3.
    I have hundreds and hundreds of bookmarks, but from what I have read, there is no max size limit.
    Thank you in advance!
    Carol

    Cor-el, thank you very for your reply.
    I started Firefox in Safe Mode. The problem still occurs in Safe Mode. My understand is if the problem persists in Safe Mode, it is *not* being caused by an extension, theme or hardware acceleration. Other possible causes could be plugins or changes made to Firefox preference settings, which are not disabled in Safe Mode.
    As you suggested, I did check Add-ons > Appearance. (I don't think I have ever had any Appearance other than the default theme.) It was and still is set at Default 32.0.2 By Mozilla. Since the bookmarks problem persists in Safe Mode, I think we can rule out this as the cause anyway.
    All of my Plug-Ins are up-to-date except iTunes Application Detector 1.0.1.1. Status is "unknown". I have all Plug-Ins set to "Ask to Activate" or "Never Activate". None of them are set to "Always Activate".
    My cache, cookies and history have been cleared. I have rebooted my computer.
    Per your instructions, I did *not* reset Firefox. Should I reset Firefox or reinstall Firefox?
    The bookmarks problem still occurs.
    Thank you so much!
    Carol

  • How to create folder names based on Excel values or Txt files?

    Hi there,
    I often need to create large numbers of folders based on names I have saved in an Excel spreadsheet. I know in windows there is a way to create a macro within excel that automatically generates folder names based on cell values.
    I was therefore wondering how to do the same on a Mac operating system. The main thing is to find a way to automate the process. I understand this may involve copying the values to a text file.
    Below is an example of the names I need to create folders for (copied from the excel spreadsheet):
    Wash Bowl Small 600
    Deck Mounted Wash Bowl 500
    Wash Basin - 866 - 2 Shelves
    Wash Bowl Large 800
    Built-In Wash Basin With 1-Taphole
    Deck Mounted Wash Bowl 625
    Would really appreciate a simple step by step approach to an explanation. As my understanding of using Automator, Apple Script, Terminal, etc, is extremely basic.
    Thanks and Best Wishes,
    Graham

    Hi Niel,
    Thanks again for another superb response. I have another question. Is it possible to automatically generate sub-folders along with the folder.
    For example:
    Folder                                                Subfolder
    Wash Bowl Small 600          >            2D CAD
                                                               3D CAD
                                                               BIM
                                                               Images
                                                               Brochures
                                                               Specifications
                                                               Technical
                                                               Case Studies
                                                               Operations
    Deck Mounted Wash Bowl 500    >   2D CAD
                                                              3D CAD
                                                              BIM
                                                              Images
                                                              Brochures
                                                              Specifications
                                                              Technical
                                                              Case Studies
                                                              Operations
    Above shows the 9 generic sub-folders I need to create within each folder that is generated.
    Best Wishes,
    Graham

Maybe you are looking for

  • External Firewire HD dead after iTunes 7 update - won't mount!

    I have a pretty serious problem. I have a 70gb music library that I keep on a Lacie Porsche 250gb external Firewire HD. The first time I ran iTunes 7, it gave me the spinning ball and locked up when "determining gapless information". I had to force q

  • Can I install patches from SAP site?

    Dear Friends, I understand that i need some patches are required for my frountend GUI 6.2 for Business Explore and WAD. Somehow the basis support is not good over here. 1) Is there any place, or better way of searching and how to install them on my P

  • Degraded raid 1 SATAS

    Everything has been working great on my 939 fx-53, 2 gig Corsair XMS 3200Pro, 2 SATA Seagate 160s, raid 1, BFG 6800 Ultra until I accidently screwed with the bus speeds (I'm a complete moron) which locked up the system and shut down COM ports. Machin

  • Is there a script that can prevent videos to work?

    I have a template from template monster , and for some reason videos wont play in it , its like it totally ignores the video, so i was wondering if template monster put a script somewhere that disables video. Thanks

  • What do clips with diagonal stripes mean in the timeline???

    If you look at the two video clips labeled "R21" in my timeline, you can see that there they have diagonal lines through them. Can anyone tell me what that means? I don't think they're offline because otherwise I would see the usual multi-lingual not